-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 902 Bytes
/
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
name: Compile
on:
push:
branches: [ "*" ]
jobs:
Compile:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: sudo apt-get install libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev -y
- name: Install Windows dependencies
if: runner.os == 'Windows'
run: vcpkg integrate install && vcpkg install freetype
- name: Configure CMake (Windows)
if: runner.os == 'Windows'
run: cmake . -G="MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Configure CMake (*nix)
if: runner.os != 'Windows'
run: cmake .
- name: Build
run: cmake --build .