-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (39 loc) · 1.38 KB
/
engine.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
name: Build Engine w/scripts
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [ {cpp: g++-12, c: gcc-12}, {cpp: clang++-17, c: clang-17} ]
defaults:
run:
working-directory: ${{github.workspace}}/engine
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y ninja-build ccache cmake build-essential libglew-dev libglfw3-dev \
gcc-12 g++-12 g++-12-riscv64-linux-gnu
git submodule update --init ${{github.workspace}}/tests/Catch2
git submodule update --init --recursive ${{github.workspace}}/ext/nanogui
git submodule update --init --recursive ${{github.workspace}}/ext/library
git submodule update --init ${{github.workspace}}/ext/libriscv
git submodule update --init ${{github.workspace}}/programs/micro/ext
- name: Install newer Clang
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 17
- name: Configure
env:
CC: ${{ matrix.compiler.c }}
CXX: ${{ matrix.compiler.cpp }}
run: cmake -B ${{github.workspace}}/engine/build -DCMAKE_BUILD_TYPE=Release
- name: Build the engine
run: cmake --build ${{github.workspace}}/engine/build --parallel 4