Skip to content

Commit 1d42614

Browse files
committed
Modernize CI
1 parent d8ad7c6 commit 1d42614

4 files changed

Lines changed: 168 additions & 206 deletions

File tree

.github/workflows/Focal-CI.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

.github/workflows/Jammy-CI.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Jammy CI
2+
on:
3+
push:
4+
paths-ignore:
5+
- 'datasets/**'
6+
- 'docs/**'
7+
- 'matlab/**'
8+
- '.gitignore'
9+
- 'LICENSE'
10+
- 'README.md'
11+
pull_request:
12+
paths-ignore:
13+
- 'datasets/**'
14+
- 'docs/**'
15+
- 'matlab/**'
16+
- '.gitignore'
17+
- 'LICENSE'
18+
- 'README.md'
19+
20+
# enable manual trigger
21+
workflow_dispatch:
22+
23+
# run on first day of the month
24+
schedule:
25+
- cron: '0 0 1 * *'
26+
27+
jobs:
28+
Build:
29+
name: Build libRSF
30+
runs-on: ubuntu-22.04
31+
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Install dependencies
37+
run: ./InstallDependencies.bash
38+
shell: bash
39+
40+
- name: Configure
41+
run: cmake -S . -B build -DLIBRSF_BUILD_TEST=ON
42+
43+
- name: Build
44+
run: cmake --build build -j$(getconf _NPROCESSORS_ONLN)
45+
46+
- name: Install
47+
run: sudo cmake --install build
48+
49+
- name: Uninstall
50+
run: sudo cmake --build build --target uninstall
51+
52+
- name: Tar build directory
53+
run: tar -czf jammy-build.tar.gz build
54+
55+
- name: Upload build artifact
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: jammy-build
59+
path: jammy-build.tar.gz
60+
if-no-files-found: error
61+
62+
Test:
63+
name: Test libRSF
64+
runs-on: ubuntu-22.04
65+
needs: [Build]
66+
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v4
70+
71+
- name: Download build artifact
72+
uses: actions/download-artifact@v4
73+
with:
74+
name: jammy-build
75+
76+
- name: Extract build directory
77+
run: tar -xzf jammy-build.tar.gz
78+
79+
- name: Install dependencies
80+
run: ./InstallDependencies.bash
81+
shell: bash
82+
83+
- name: Test
84+
run: ctest --test-dir build --output-on-failure

.github/workflows/Jammy.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

.github/workflows/Noble-CI.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Noble CI
2+
on:
3+
push:
4+
paths-ignore:
5+
- 'datasets/**'
6+
- 'docs/**'
7+
- 'matlab/**'
8+
- '.gitignore'
9+
- 'LICENSE'
10+
- 'README.md'
11+
pull_request:
12+
paths-ignore:
13+
- 'datasets/**'
14+
- 'docs/**'
15+
- 'matlab/**'
16+
- '.gitignore'
17+
- 'LICENSE'
18+
- 'README.md'
19+
20+
# enable manual trigger
21+
workflow_dispatch:
22+
23+
# run on first day of the month
24+
schedule:
25+
- cron: '0 0 1 * *'
26+
27+
jobs:
28+
Build:
29+
name: Build libRSF
30+
runs-on: ubuntu-24.04
31+
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Install dependencies
37+
run: ./InstallDependencies.bash
38+
shell: bash
39+
40+
- name: Configure
41+
run: cmake -S . -B build -DLIBRSF_BUILD_TEST=ON
42+
43+
- name: Build
44+
run: cmake --build build -j$(getconf _NPROCESSORS_ONLN)
45+
46+
- name: Install
47+
run: sudo cmake --install build
48+
49+
- name: Uninstall
50+
run: sudo cmake --build build --target uninstall
51+
52+
- name: Tar build directory
53+
run: tar -czf noble-build.tar.gz build
54+
55+
- name: Upload build artifact
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: noble-build
59+
path: noble-build.tar.gz
60+
if-no-files-found: error
61+
62+
Test:
63+
name: Test libRSF
64+
runs-on: ubuntu-24.04
65+
needs: [Build]
66+
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v4
70+
71+
- name: Download build artifact
72+
uses: actions/download-artifact@v4
73+
with:
74+
name: noble-build
75+
76+
- name: Extract build directory
77+
run: tar -xzf noble-build.tar.gz
78+
79+
- name: Install dependencies
80+
run: ./InstallDependencies.bash
81+
shell: bash
82+
83+
- name: Test
84+
run: ctest --test-dir build --output-on-failure

0 commit comments

Comments
 (0)