mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-24 13:31:05 +00:00
CI: Test building for different release types & configs
This commit is contained in:
parent
b578f29168
commit
778c9fb92a
43
.github/workflows/check-build.yaml
vendored
43
.github/workflows/check-build.yaml
vendored
@ -14,22 +14,49 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-build:
|
ubuntu-build:
|
||||||
runs-on: ubuntu-latest
|
name: ${{ matrix.name }}
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
env:
|
||||||
|
CTEST_OUTPUT_ON_FAILURE: ON
|
||||||
|
CTEST_PARALLEL_LEVEL: 2
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: Default
|
||||||
|
cmake-args: ""
|
||||||
|
- name: Debug
|
||||||
|
cmake-args: "-DCMAKE_BUILD_TYPE=Debug"
|
||||||
|
- name: Debug-Persistence-Obfuscate
|
||||||
|
cmake-args: "-DCMAKE_BUILD_TYPE=Debug -DLAIKA_PERSISTENCE=On -DLAIKA_OBFUSCATE=On"
|
||||||
|
- name: Release
|
||||||
|
cmake-args: "-DCMAKE_BUILD_TYPE=MinSizeRel"
|
||||||
|
- name: Release-Persistence-Obfuscate
|
||||||
|
cmake-args: "-DCMAKE_BUILD_TYPE=MinSizeRel -DLAIKA_PERSISTENCE=On -DLAIKA_OBFUSCATE=On"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install dependencies
|
- uses: actions/setup-python@v2
|
||||||
run: sudo apt install clang cmake -y
|
with:
|
||||||
- name: Create CMake build files
|
python-version: "3.10"
|
||||||
run: cmake -B build
|
- name: Install
|
||||||
- name: Check compilation
|
run: pip install cmake==3.21.4 --upgrade
|
||||||
|
- name: CMake
|
||||||
|
run: cmake -S . -B build ${{ matrix.cmake-args }}
|
||||||
|
- name: Build
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: laika-demo-binaries-ubuntu
|
name: Laika-Ubuntu-${{ matrix.name }}
|
||||||
path: bin
|
path: bin
|
||||||
|
- name: Cleanup
|
||||||
|
run: rm -rf bin build
|
||||||
|
|
||||||
|
|
||||||
windows-build:
|
windows-build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@ -44,5 +71,5 @@ jobs:
|
|||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: laika-demo-binaries-windows
|
name: Laika-Windows
|
||||||
path: winbin
|
path: winbin
|
Loading…
Reference in New Issue
Block a user