Build overhaul: cmake, mac, github actions #4
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: | |
jobs: | |
windows: | |
runs-on: windows-2019 | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Windows VS2019 | |
run: | | |
cmake -S . --preset=x64-release | |
cmake --build out/build/x64-release --config RelWithDebInfo | |
"out/build/x64-release/RelWithDebInfo/Sizer.exe" | |
shell: cmd | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Sizer.exe | |
path: out/build/x64-release/RelWithDebInfo/Sizer.exe | |
mac: | |
runs-on: macOS-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: macOS Xcode 14 | |
run: | | |
cmake -S . --preset=mac-release | |
cmake --build out/mac-release | |
out/mac-release/Sizer | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Sizer-mac | |
path: out/mac-release/Sizer | |
linux: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Ubuntu22 Gcc11 | |
env: | |
CC: gcc-11 | |
CXX: g++-11 | |
run: | | |
cmake -S . --preset=linux-release | |
cmake --build out/linux-release | |
out/linux-release/Sizer | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Sizer-linux | |
path: out/linux-release/Sizer |