-
Notifications
You must be signed in to change notification settings - Fork 203
47 lines (38 loc) · 1.04 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
name: Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
standard:
name: Compile on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Update CMake
uses: jwlawson/[email protected]
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.9'
- name: Prepare compiler environment for Windows
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install dependencies on Linux
if: runner.os == 'Linux'
run: sudo apt-get install -y xorg-dev libglu1-mesa-dev
- name: Configure
run: >
cmake -S . -B build "-DPython_EXECUTABLE=$(python3 -c 'import sys; print(sys.executable)')"
- name: Build C++
run: cmake --build build -j 2