@@ -11,11 +11,12 @@ on: [push, pull_request]
11
11
12
12
jobs :
13
13
build :
14
- name : " Build on ${{ matrix.platform }}"
14
+ name : " Build on ${{ matrix.platform }} - ${{ matrix.build_type }} "
15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
18
platform : [ubuntu-latest, macos-latest, windows-latest]
19
+ build_type : [Debug, Release]
19
20
runs-on : ${{ matrix.platform }}
20
21
21
22
steps :
@@ -28,27 +29,28 @@ jobs:
28
29
run : |
29
30
sudo apt-get update || true
30
31
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
32
33
mkdir -p build && cd build
33
- cmake -DCMAKE_BUILD_TYPE=Release ..
34
+ cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
34
35
make
35
36
36
37
# Install dependencies and build on macOS
37
38
- name : Build on macOS
38
39
if : runner.os == 'macOS'
39
40
run : |
40
41
brew update || true
41
- brew install cmake
42
+ brew install cmake boost
42
43
mkdir -p build && cd build
43
- cmake -DCMAKE_BUILD_TYPE=Release ..
44
+ cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
44
45
make
45
46
46
47
# Set up environment and build on Windows
47
48
- name : Build on Windows
48
49
if : runner.os == 'Windows'
49
50
shell : cmd
50
51
run : |
52
+ choco install boost cmake --installargs '"ADD_CMAKE_TO_PATH=System"'
51
53
mkdir build
52
54
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