-
Notifications
You must be signed in to change notification settings - Fork 51
46 lines (39 loc) · 1.02 KB
/
ubuntu.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
name: Ubuntu
on:
push:
paths-ignore:
- '*.rst'
- 'UNLICENCE'
- 'Doxyfile.in'
- 'images/**'
- 'shaders/**'
pull_request:
paths-ignore:
- '*.rst'
- 'UNLICENCE'
- 'Doxyfile.in'
- 'images/**'
- 'shaders/**'
jobs:
build:
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
compiler:
- { cc: gcc, cxx: g++ }
- { cc: clang, cxx: clang++ }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Ubuntu Packages
run: |
sudo apt-get update
sudo apt-get install -y ninja-build libassimp-dev libglfw3-dev
- name: Generate
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
run: cmake -S${{ github.workspace }} -B${{ github.workspace }}/build -G"Ninja" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.build_type }}