This repository has been archived by the owner on Feb 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_actions.sh
executable file
·65 lines (61 loc) · 1.65 KB
/
generate_actions.sh
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
#!/bin/bash
cat << EOF
name: Test Actions
on: [push]
jobs:
EOF
for CENTOS_VERSION in 6 7; do
for CUDA_VERSION in 8.0 9.0 9.1 9.2 10.0 10.1 10.2; do
tag="centos${CENTOS_VERSION}-cuda${CUDA_VERSION//./_}"
cat << EOF
${tag}:
runs-on: ubuntu-latest
name: CentOS ${CENTOS_VERSION}, CUDA ${CUDA_VERSION}
steps:
- uses: actions/checkout@v1
- name: Login GitHub Registry
run: docker login docker.pkg.github.com -u owner -p \${{ secrets.GITHUB_TOKEN }}
- name: cargo test
id: test
uses: rust-accel/docker-action@${tag}
with:
path: rust-cuda-test
EOF
done
done
UBUNTU_VERSION=16.04
for CUDA_VERSION in 8.0 9.0 9.1 9.2 10.0 10.1 10.2; do
tag="ubuntu${UBUNTU_VERSION//./}-cuda${CUDA_VERSION//./_}"
cat << EOF
${tag}:
runs-on: ubuntu-latest
name: Ubuntu ${UBUNTU_VERSION}, CUDA ${CUDA_VERSION}
steps:
- uses: actions/checkout@v1
- name: Login GitHub Registry
run: docker login docker.pkg.github.com -u owner -p \${{ secrets.GITHUB_TOKEN }}
- name: cargo test
id: test
uses: rust-accel/docker-action@${tag}
with:
path: rust-cuda-test
EOF
done
UBUNTU_VERSION=18.04
for CUDA_VERSION in 9.2 10.0 10.1 10.2; do
tag="ubuntu${UBUNTU_VERSION//./}-cuda${CUDA_VERSION//./_}"
cat << EOF
${tag}:
runs-on: ubuntu-latest
name: Ubuntu ${UBUNTU_VERSION}, CUDA ${CUDA_VERSION}
steps:
- uses: actions/checkout@v1
- name: Login GitHub Registry
run: docker login docker.pkg.github.com -u owner -p \${{ secrets.GITHUB_TOKEN }}
- name: cargo test
id: test
uses: rust-accel/docker-action@${tag}
with:
path: rust-cuda-test
EOF
done