Win darkmode #65
Workflow file for this run
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: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
wxBUILD_SHARED: OFF | |
wxBUILD_USE_STATIC_RUNTIME: ON | |
jobs: | |
build-win-msvc2022: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DwxBUILD_SHARED=${{env.wxBUILD_SHARED}} -DwxBUILD_USE_STATIC_RUNTIME=${{env.wxBUILD_USE_STATIC_RUNTIME}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 2 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: windows_bin_x64 | |
path: ${{github.workspace}}/build/app/Release/DeltaPatcher.exe | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Pull dependencies | |
run: sudo apt install -y build-essential cmake git libgtk-3-dev | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DwxBUILD_SHARED=${{env.wxBUILD_SHARED}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 2 | |
# - name: Package AppImage | |
# run: ${{github.workspace}}/utils/make-appimage.sh ${{github.workspace}}/build ${{github.workspace}} DeltaPatcher | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux_bin_gtk3_x86_64 | |
path: ${{github.workspace}}/build/app/DeltaPatcher | |
build-macos11-universal: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DwxBUILD_SHARED=${{env.wxBUILD_SHARED}} -DwxBUILD_USE_STATIC_RUNTIME=${{env.wxBUILD_USE_STATIC_RUNTIME}} | |
- name: Build | |
run: | | |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 2 | |
cd ${{github.workspace}}/build/app | |
zip -r macos10.15_bin_universal.zip DeltaPatcher.app/ | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: macos11_bin_universal | |
path: ${{github.workspace}}/build/app/macos11_bin_universal.zip |