-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.88 KB
/
test.yml
File metadata and controls
59 lines (49 loc) · 1.88 KB
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
50
51
52
53
54
55
56
57
58
59
name: Run gtest
run-name: Run tests by ${{ github.actor }}
on: [push]
jobs:
job:
name: ${{ matrix.os }}-${{ github.workflow }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
include:
- os: windows-latest
preset: 'x64-release'
binary_ext: '.exe'
- os: ubuntu-latest
preset: 'linux-debug'
install_opengl: true
- os: macos-latest
preset: 'macos-debug'
steps:
- name: Checkout
uses: actions/checkout@v4.2.0
- name: Install openGL
if: ${{ matrix.install_opengl }}
run: |
sudo apt-get update
sudo apt-get install libxmu-dev libxi-dev libgl-dev
sudo apt install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config
sudo apt install libxrandr-dev
- uses: ilammy/msvc-dev-cmd@v1.13.0
- uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.31.0" # use most recent 3.31.x version
- name: Run vcpkg
uses: lukka/run-vcpkg@v11.5
with:
runVcpkgInstall: true
- name: Run CMake
uses: lukka/run-cmake@v10
with:
configurePreset: ${{ matrix.preset }}
- name: Compile
working-directory: ./out/build/${{ matrix.preset }}
run: ninja
- name: Run Tests
working-directory: ./out/build/${{ matrix.preset }}/src/tests
timeout-minutes: 5
run: ./tests${{ matrix.binary_ext }}