-
Notifications
You must be signed in to change notification settings - Fork 32
78 lines (65 loc) · 1.87 KB
/
ci.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: CI
on:
pull_request:
push:
branches:
- gh-pages
jobs:
pre-commit:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jwlawson/[email protected]
with:
cmake-version: "3.15"
- name: Install boost
run: |
sudo apt-get update
sudo apt-get install -y libboost-dev
- name: 00-intro
run: |
cp _includes/code/00-intro/CMakeLists.txt code/00-intro
cmake -S code/00-intro -B build-00-intro
cmake --build build-00-intro
./build-00-intro/simple_example
- name: 01-simple
run: |
cp _includes/code/01-simple/CMakeLists.txt code/01-simple
cmake -S code/01-simple -B build-01-simple
cmake --build build-01-simple
./build-01-simple/simple_example
- name: 03-structure
run: |
cmake -S code/03-structure -B build-03-structure
cmake --build build-03-structure
./build-03-structure/apps/app
./build-03-structure/tests/testlib
cmake --build build-03-structure --target test
root-test:
name: ROOT Test
runs-on: ubuntu-latest
container: rootproject/root:latest
steps:
- uses: actions/checkout@v4
- name: Build 05a-root
run: |
cmake -S code/05a-root -B build-05a-root
cmake --build build-05a-root
- name: Test 05a-root
run: root -b -q -x ../code/05a-root/CheckLoad.C
working-directory: build-05a-root
- name: Build 05b-root
run: |
cmake -S code/05b-root -B build-05b-root
cmake --build build-05b-root
- name: Test 05b-root
run: root -b -q -x ../code/05b-root/CheckLoad.C
working-directory: build-05b-root