-
Notifications
You must be signed in to change notification settings - Fork 2
88 lines (71 loc) · 2.16 KB
/
Copy pathci.yml
File metadata and controls
88 lines (71 loc) · 2.16 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
permissions:
contents: read
env:
CMAKE_BUILD_TYPE: Release
jobs:
build_macos:
name: Build (macOS)
runs-on: macos-latest
steps:
- uses: actions/checkout@v7
- name: Install dependencies
run: |
if ! command -v cmake >/dev/null 2>&1; then
brew install cmake
fi
cmake --version
c++ --version
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_TESTING=OFF
- name: Build imalgs
run: cmake --build build --target imalgs --parallel
build_rocky:
name: Build (Rocky Linux 9)
runs-on: ubuntu-latest
container:
image: rockylinux:9
steps:
- name: Install dependencies
run: |
dnf -y install gcc gcc-c++ make git tar gzip python3-pip
python3 -m pip install --upgrade "cmake>=3.26,<4.3"
cmake --version
c++ --version
- uses: actions/checkout@v7
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_TESTING=OFF
- name: Build imalgs
run: cmake --build build --target imalgs --parallel
run_all_tests:
name: Test (Rocky Linux 9)
runs-on: ubuntu-latest
container:
image: rockylinux:9
steps:
- name: Install dependencies
run: |
dnf -y install gcc gcc-c++ make git tar gzip python3-pip
python3 -m pip install --upgrade "cmake>=3.26,<4.3"
cmake --version
c++ --version
- name: Checkout repository
uses: actions/checkout@v7
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DIM_SAMPLE_ALGORITHM_BUILD_TESTING=ON
- name: Build
run: cmake --build build --parallel
- name: Run CTest
run: ctest --test-dir build --output-on-failure
- name: Upload test results
uses: actions/upload-artifact@v7
if: always()
with:
name: imalgs-test-results
path: build/unittest/*results.xml
if-no-files-found: error