-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.02 KB
/
cuda-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
name: cuda build
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
cuda-build:
strategy:
fail-fast: false
matrix:
cuda: [ '12.5.0', '12.6.0' ]
# all available versions:
# https://github.com/Jimver/cuda-toolkit/blob/master/src/links/linux-links.ts
name: cuda build (${{ matrix.cuda }})
runs-on: ubuntu-latest
steps:
- uses: jimver/[email protected]
id: cuda-toolkit
with:
cuda: ${{ matrix.cuda }}
method: 'network'
sub-packages: '[ "nvcc" ]'
- name: check NVCC
run: nvcc -V
- name: install dependencies
run:
sudo apt install -y cmake libglu1-mesa-dev libpng-dev libx11-dev xorg-dev
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run:
mkdir build;
cd build;
cmake ..;
make -j2;
# `make -j` could crash CI instances because of limited memory