Progessive JPEG option #160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- '.clang-format' | |
- 'setup.iss' | |
- '.github/ISSUE_TEMPLATE/**' | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- '.clang-format' | |
- 'setup.iss' | |
- '.github/ISSUE_TEMPLATE/**' | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache libcaesium | |
id: cache-libcaesium | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-libcaesium | |
with: | |
path: ${{github.workspace}}/build-${{ runner.os }}/libcaesium-prefix | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/libcaesium.conf') }} | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v4 | |
with: | |
aqtversion: '==3.1.*' | |
version: '6.7.3' | |
host: 'windows' | |
target: 'desktop' | |
arch: 'win64_mingw' | |
modules: 'qtimageformats' | |
tools: 'tools_mingw90' | |
cache: true | |
- name: Install Rust target | |
run: rustup target add x86_64-pc-windows-gnu | |
- name: Configure CMake | |
run: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${{env.Qt6_Dir}}" -G "CodeBlocks - MinGW Makefiles" -B ${{github.workspace}}/build-${{ runner.os }} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build-${{ runner.os }} --config Release --target caesium_image_compressor | |
# build-macos: | |
# runs-on: macos-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: Cache libcaesium | |
# id: cache-libcaesium | |
# uses: actions/cache@v4 | |
# env: | |
# cache-name: cache-libcaesium | |
# with: | |
# path: ${{github.workspace}}/build-${{ runner.os }}/libcaesium-prefix | |
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/libcaesium.conf') }} | |
# | |
# - name: Install Qt | |
# uses: jurplel/install-qt-action@v4 | |
# with: | |
# aqtversion: '==3.1.*' | |
# version: '6.7.3' | |
# host: 'mac' | |
# target: 'desktop' | |
# arch: 'clang_64' | |
# modules: 'qtimageformats' | |
# cache: true | |
# | |
# - name: Setup Sparkle | |
# run: brew install --cask https://raw.githubusercontent.com/Homebrew/homebrew-cask/c6dfe6baf1639998ba1707f68668cf8fa97bac9d/Casks/sparkle.rb && sudo cp -R /usr/local/Caskroom/sparkle/1.27.1/Sparkle.framework /Library/Frameworks/Sparkle.framework | |
# | |
# - name: Configure CMake | |
# run: cmake -B build_dir -DCMAKE_PREFIX_PATH="${{env.Qt6_Dir}}" -DSPARKLE_INCLUDE_DIR=/usr/local/Caskroom/sparkle/1.27.1/Sparkle.framework/Versions/Current/Headers -DLIBSSH_INCLUDE_DIR=/usr/local/opt/openssl/ -DCMAKE_BUILD_TYPE=Release -B ${{github.workspace}}/build-${{ runner.os }} | |
# | |
# - name: Build | |
# run: cmake --build ${{github.workspace}}/build-${{ runner.os }} --config Release --target caesium_image_compressor | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache libcaesium | |
id: cache-libcaesium | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-libcaesium | |
with: | |
path: ${{github.workspace}}/build-${{ runner.os }}/libcaesium-prefix | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/libcaesium.conf') }} | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v4 | |
with: | |
aqtversion: '==3.1.*' | |
version: '6.7.3' | |
host: 'linux' | |
target: 'desktop' | |
arch: 'linux_gcc_64' | |
modules: 'qtimageformats' | |
cache: true | |
- name: Configure CMake | |
run: cmake -B build_dir -DCMAKE_PREFIX_PATH="${{env.Qt6_Dir}}" -DCMAKE_BUILD_TYPE=Release -B ${{github.workspace}}/build-${{ runner.os }} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build-${{ runner.os }} --config Release --target caesium_image_compressor |