Skip to content

Merge pull request #295 from Kahlenden/linux-build #151

Merge pull request #295 from Kahlenden/linux-build

Merge pull request #295 from Kahlenden/linux-build #151

Workflow file for this run

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@v3
- name: Cache libcaesium
id: cache-libcaesium
uses: actions/cache@v3
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@v3
with:
aqtversion: '==3.0.*'
version: '6.5.3'
host: 'windows'
target: 'desktop'
arch: 'win64_mingw'
modules: 'qtimageformats'
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@v3
#
# - name: Cache libcaesium
# id: cache-libcaesium
# uses: actions/cache@v3
# 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@v3
# with:
# aqtversion: '==3.0.*'
# version: '6.5.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@v3
- name: Cache libcaesium
id: cache-libcaesium
uses: actions/cache@v3
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@v3
with:
aqtversion: '==3.0.*'
version: '6.5.3'
host: 'linux'
target: 'desktop'
arch: '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