Skip to content

Commit e280ce8

Browse files
committed
Update test-build.yml
1 parent e497aef commit e280ce8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test-build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ on: [push, pull_request]
1111

1212
jobs:
1313
build:
14-
name: "Build on ${{ matrix.platform }}"
14+
name: "Build on ${{ matrix.platform }} - ${{ matrix.build_type }}"
1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
platform: [ubuntu-latest, macos-latest, windows-latest]
19+
build_type: [Debug, Release]
1920
runs-on: ${{ matrix.platform }}
2021

2122
steps:
@@ -28,27 +29,28 @@ jobs:
2829
run: |
2930
sudo apt-get update || true
3031
sudo apt-get install -y build-essential libglu1-mesa-dev \
31-
mesa-common-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
32+
mesa-common-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libboost-all-dev
3233
mkdir -p build && cd build
33-
cmake -DCMAKE_BUILD_TYPE=Release ..
34+
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
3435
make
3536
3637
# Install dependencies and build on macOS
3738
- name: Build on macOS
3839
if: runner.os == 'macOS'
3940
run: |
4041
brew update || true
41-
brew install cmake
42+
brew install cmake boost
4243
mkdir -p build && cd build
43-
cmake -DCMAKE_BUILD_TYPE=Release ..
44+
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
4445
make
4546
4647
# Set up environment and build on Windows
4748
- name: Build on Windows
4849
if: runner.os == 'Windows'
4950
shell: cmd
5051
run: |
52+
choco install boost cmake --installargs '"ADD_CMAKE_TO_PATH=System"'
5153
mkdir build
5254
cd build
53-
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release ..
54-
cmake --build . --config Release
55+
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
56+
cmake --build . --config ${{ matrix.build_type }}

0 commit comments

Comments
 (0)