-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (80 loc) · 2.1 KB
/
gpu.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
name: gpu (build only)
run-name: ${{ github.actor }} is building for gpu
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
setup-cuda:
runs-on: ubuntu-latest
steps:
- name: Get cuda toolkit
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '11.7.0'
- name: tmp
run: |
echo "${{ steps.cuda-toolkit.outputs.cuda }}"
echo "${{ steps.cuda-toolkit.outputs.CUDA_PATH }}"
nvcc -V
- name: Cache CUDA
uses: actions/cache@v4
with:
path: /usr/local/cuda-11.7
key: cuda-11.7
build-tests:
needs: setup-cuda
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Cache CUDA
uses: actions/cache@v4
with:
path: /usr/local/cuda-11.7
key: cuda-11.7
- name: Bootstrap and configure
uses: ./.github/actions/configure-gpu
- name: Build tests
run: meson compile -C build/ tests
build-examples:
needs: setup-cuda
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Cache CUDA
uses: actions/cache@v4
with:
path: /usr/local/cuda-11.7
key: cuda-11.7
- name: Bootstrap and configure
uses: ./.github/actions/configure-gpu
- name: Build examples
run: meson compile -C build/ examples
build-python:
needs: setup-cuda
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Cache CUDA
uses: actions/cache@v4
with:
path: /usr/local/cuda-11.7
key: cuda-11.7
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Bootstrap and configure
uses: ./.github/actions/configure-gpu
- name: Build python bindings
run: meson compile -C build/ python