-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (59 loc) · 1.65 KB
/
Copy pathci.yml
File metadata and controls
70 lines (59 loc) · 1.65 KB
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
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
matrix:
include:
- os: macos-latest
container: ''
install: |
brew update
brew upgrade
- os: ubuntu-latest
container: rockylinux:9
install: |
dnf -y install gcc gcc-c++ make cmake git
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: ${{ matrix.install }}
- name: Configure and Build
run: |
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --target imalgs -j
run_all_tests:
runs-on: ubuntu-latest
container:
image: rockylinux:9
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
dnf -y install gcc gcc-c++ make cmake git
- name: Build project
run: |
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON
- name: Run tests
run: |
cmake --build build --target run_imalgs_test -j
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: public-test-results
path: unittest/*results.xml
# - name: Publish JUnit test results
# uses: dorny/test-reporter@v2
# if: always()
# with:
# name: Public Library Tests
# path: unittest/*results.xml
# reporter: jest-junit
# fail-on-error: true