-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (84 loc) · 2.4 KB
/
ubuntu.yml
File metadata and controls
100 lines (84 loc) · 2.4 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
89
90
91
92
93
94
95
96
97
98
99
100
name: Ubuntu
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
build_dir: "build"
artifact: "cuboolgraph-ubuntu-build.tar.xz"
jobs:
build:
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
gcc: 14
env:
config: "Release"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure CMake build
run: |
cmake -B ${{ env.build_dir }} -S . \
-DCMAKE_CXX_COMPILER=g++-${{ matrix.gcc }} \
-DCMAKE_C_COMPILER=gcc-${{ matrix.gcc }} \
-DCMAKE_BUILD_TYPE=${{ env.config }} \
-DCUBOOL_WITH_CUDA=OFF \
-DCUBOOL_WITH_SEQUENTIAL=ON \
-DCUBOOL_GRAPH_ENABLE_TESTING=ON
- name: Build library sources
run: |
cmake --build ${{ env.build_dir }} \
--verbose \
-j10
- name: Prepare upload project
run: |
tar cfz ${{ env.artifact }} ${{ env.build_dir }}
- name: Upload project
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact }}
path: ${{ env.artifact }}
test:
name: Test CPU ${{ matrix.cpu }}
needs: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
cpu: AMD-EPYC-7763
env:
test-file: cpu_test.log
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/download-artifact@v4
with:
name: ${{ env.artifact }}
- name: Unarchive artifact
run: |
tar xzf ${{ env.artifact }}
rm ${{ env.artifact }}
- name: Run tests
working-directory: ${{ env.build_dir }}/tests
run: |
./cuboolgraph_tests | tee ${{ env.test-file }}
- name: Upload tests resutls
uses: actions/upload-artifact@v4
with:
name: ${{ env.test-file }}
path: ${{ env.build_dir }}/tests/${{ env.test-file }}
- name: Check for tests results
working-directory: ${{ env.build_dir }}/tests
run: |
! grep -q "FAILED" ${{ env.test-file }}