-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (61 loc) · 1.58 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build_lib:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Eigen
run: sudo apt-get install libeigen3-dev
- name: Build library
run: make libcevicp.a OPT=RELEASE
- name: Upload library
uses: actions/upload-artifact@v4
with:
name: libcevicp.a
path: libcevicp.a
test:
runs-on: ubuntu-22.04
needs: build_lib
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download library
uses: actions/download-artifact@v4
with:
name: libcevicp.a
- name: Install Eigen
run: sudo apt-get install libeigen3-dev
- name: Install simple-test
run: |
git clone https://github.com/cornellev/simple-test
cd simple-test
make install
- name: Run tests
run: make test OPT=RELEASE
bench:
runs-on: ubuntu-22.04
needs: build_lib
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download library
uses: actions/download-artifact@v4
with:
name: libcevicp.a
- 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
make install
- name: Run benchmarks
run: make bench OPT=RELEASE