-
Notifications
You must be signed in to change notification settings - Fork 13
62 lines (46 loc) · 1.23 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
name: Build
on: [push]
jobs:
build_ubuntu_latests_no_cuda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install criterion
run: |
source ./scripts/actions/install_criterion.sh
if [[ $? -eq 0 ]]; then
echo "Criterion installed"
fi
shell: bash
- name: Build without cuda
run: ./build.sh -r simulator
- name: Test without cuda
run: ./run_tests.sh
build_ubuntu_latest_cuda11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build without cuda
run: ./build.sh -r simulator
- uses: Jimver/cuda-toolkit@v0.2.10
id: cuda-toolkit
with:
cuda: '11.7.0'
method: 'network'
linux-local-args: '["--toolkit"]'
- name: Build with cuda 11
run: ./build.sh -r simulator
build_ubuntu_latest_cuda12:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build without cuda
run: ./build.sh -r simulator
- uses: Jimver/cuda-toolkit@v0.2.10
id: cuda-toolkit
with:
cuda: '12.1.0'
method: 'network'
linux-local-args: '["--toolkit"]'
- name: Build with cuda 12
run: ./build.sh -r simulator