-
Notifications
You must be signed in to change notification settings - Fork 14
56 lines (54 loc) · 1.23 KB
/
action.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
name: action
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
cuda_versions: ['11.2.1', '11.2.2', '11.3.1']
steps:
- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: ${{ matrix.cuda_versions }}
- name: test nvcc command
run: nvcc -V
- name: show cmake version
run: cmake --version
- name: show gcc version
run: gcc --version
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: test build
run: |
cd tools
chmod +x github-action-setup.sh
./github-action-setup.sh
shell: bash
build-apt:
runs-on: ubuntu-latest
steps:
- name: install cuda with apt
run: |
sudo apt update
sudo apt install nvidia-cuda-toolkit
shell: bash
- name: test nvcc command
run: nvcc -V
- name: show cmake version
run: cmake --version
- name: show gcc version
run: gcc --version
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: test build
run: |
cd tools
chmod +x github-action-setup-old.sh
./github-action-setup-old.sh
shell: bash
env:
CC: gcc-8
CXX: g++-8