-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (48 loc) · 1.59 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build_linux:
name: Linux - ${{ matrix.buildPreset }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
buildPreset: [Release, Debug]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Dependencies
run: |
sudo apt update
sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libgl1-mesa-dev ninja-build -y gcc-13 g++-13
- name: Configure CMake
run: cmake --preset Ninja-GCC
- name: Build
run: cmake --build . --preset g++-${{ matrix.buildPreset }}
working-directory: ${{ github.workspace }}
- name: Test
run: ./Test --no-graphics
working-directory: ${{ github.workspace }}/build/Ninja-GCC/${{ matrix.buildPreset }}
build_windows:
name: Windows - ${{ matrix.buildPreset }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
buildPreset: [release, debug]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Dependencies
run: |
choco install ninja
- name: Configure CMake
run: cmake --preset visual-studio-17-2022
- name: Build
run: cmake --build . --preset vs-msvc-${{ matrix.buildPreset }}
working-directory: ${{ github.workspace }}
- name: Test
run: ./Test --no-graphics
working-directory: ${{ github.workspace }}/build/visual-studio-17-2022/${{ matrix.buildPreset }}