-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.19 KB
/
ci.yaml
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: CI
on:
pull_request:
push:
branches:
- main
jobs:
build_test_bench:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: apt update
run: sudo apt-get update
- name: Install Eigen
run: sudo apt-get install libeigen3-dev
- name: Install SDL2
run: sudo apt-get install libsdl2-dev
- name: Install sdl-wrapper
run: |
git clone https://github.com/cornellev/sdl-wrapper.git
cd sdl-wrapper
sudo make install
- name: Install libcmdapp2
run: |
git clone https://github.com/cornellev/libcmdapp2.git
cd libcmdapp2
sudo make install
- name: Install libconfig
run: |
git clone https://github.com/cornellev/config
cd config
sudo make install
- name: Install simple-test
run: |
git clone https://github.com/cornellev/simple-test
cd simple-test
sudo make install
- name: Build all
run: make OPT=Release
- name: Run tests
run: make test OPT=Release
- name: Run benchmarks
run: make bench OPT=Release