-
Notifications
You must be signed in to change notification settings - Fork 0
150 lines (142 loc) · 4.99 KB
/
build.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name : Build
on:
push:
paths-ignore:
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/*.yml'
- 'LICENSE.txt'
- '*.md'
- '*.sh'
branches:
- master
- edge
pull_request:
branches:
- master
- edge
jobs:
ubuntu_2204_cc_matrix_no_cuda:
strategy:
fail-fast: false
matrix:
cxx: [17, 20]
build_type: ["RelWithDebInfo"]
compiler:
[
"g++-11",
"g++-10",
"clang++-11",
"clang++-12",
"clang++-13",
"clang++-14"
]
name: "Ubuntu 22.04 (${{ matrix.compiler }}, C++${{ matrix.cxx }}, ${{matrix.build_type}})"
runs-on: ubuntu-22.04
outputs:
id: "${{ matrix.compiler }} (C++${{ matrix.cxx }}, ${{ matrix.build_type }})"
steps:
- uses: actions/checkout@v3
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: "ccache-ubuntu2204_no_cuda-${{ matrix.compiler }}-${{ matrix.cxx }}-${{ matrix.build_type }}"
max-size: 256M
- name: "update APT database"
run: sudo apt -q update
- name: Install GCC 11
if: ${{ startsWith(matrix.compiler, 'g++-11') }}
run: sudo apt install -y g++-11
- name: Install GCC 10
if: ${{ startsWith(matrix.compiler, 'g++-10') }}
run: sudo apt install -y g++-10
- name: Install Clang 11
if: ${{ startsWith(matrix.compiler, 'clang++-11') }}
run: sudo apt install -y clang-11
- name: Install Clang 12
if: ${{ startsWith(matrix.compiler, 'clang++-12') }}
run: sudo apt install -y clang-12
- name: Install Clang 13
if: ${{ startsWith(matrix.compiler, 'clang++-13') }}
run: sudo apt install -y clang-13
- name: Install Clang 14
if: ${{ startsWith(matrix.compiler, 'clang++-14') }}
run: sudo apt install -y clang-14
- name: "Download dependencies"
run: sudo apt install cmake ninja-build
- name: "Cmake configure"
run: cmake --preset=prop-actions -S . -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx }} -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
- name: "build "
run: cmake --build build/ --target "pyprop;prop_test" -- -j3
ubuntu_2004_cc_matrix_no_cuda:
strategy:
fail-fast: false
matrix:
cxx: [17]
build_type: ["RelWithDebInfo"]
compiler:
[
"g++",
"clang++"
]
name: "Ubuntu 20.04 (${{ matrix.compiler }}, C++${{ matrix.cxx }}, ${{matrix.build_type}})"
runs-on: ubuntu-20.04
outputs:
id: "${{ matrix.compiler }} (C++${{ matrix.cxx }}, ${{ matrix.build_type }})"
steps:
- uses: actions/checkout@v3
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: "ccache-ubuntu2004_no_cuda-${{ matrix.compiler }}-${{ matrix.cxx }}-${{ matrix.build_type }}"
max-size: 256M
- name: "update APT database"
run: sudo apt -q update
- name: Install GCC
if: ${{ startsWith(matrix.compiler, 'g++') }}
run: sudo apt install -y g++
- name: Install Clang
if: ${{ startsWith(matrix.compiler, 'clang++') }}
run: sudo apt install -y clang
- name: "Download dependencies"
run: sudo apt install cmake ninja-build
- name: "Cmake configure"
run: cmake --preset=prop-actions -S . -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx }} -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
- name: "build "
run: cmake --build build/ --target "pyprop;prop_test" -- -j3
ubuntu_2204_cc_matrix_cuda:
strategy:
fail-fast: false
matrix:
cxx: [17, 20]
build_type: ["Debug", "RelWithDebInfo"]
compiler:
[
"g++-11"
]
name: "Ubuntu 22.04 CUDA (${{ matrix.compiler }}, C++${{ matrix.cxx }}, ${{matrix.build_type}})"
runs-on: ubuntu-22.04
outputs:
id: "${{ matrix.compiler }} (C++${{ matrix.cxx }}, ${{ matrix.build_type }})"
steps:
- uses: actions/checkout@v3
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: "ccache-ubuntu2204_cuda-${{ matrix.compiler }}-${{ matrix.cxx }}-${{ matrix.build_type }}"
max-size: 256M
- uses: Jimver/cuda-toolkit@v0.2.10
id: cuda-toolkit
with:
cuda: '12.1.0'
- name: "update APT database"
run: sudo apt -q update
- name: Install GCC 11
if: ${{ startsWith(matrix.compiler, 'g++-11') }}
run: sudo apt install -y g++-11
- name: "Download dependencies"
run: sudo apt install cmake ninja-build
- name: "Cmake configure"
run: cmake --preset=prop-cuda-actions -S . -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.cxx }} -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
- name: "build "
run: cmake --build build/ --target "pyprop" -- -j3