-
Notifications
You must be signed in to change notification settings - Fork 235
64 lines (52 loc) · 1.57 KB
/
gpu-ci.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
name: "gpu-ci"
on: [workflow_dispatch, push, pull_request]
concurrency:
group: build-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
gpu-ci:
name: GPU-CI
runs-on:
- runs-on
- family=g4dn.xlarge
- image=ubuntu22-full-x64
strategy:
max-parallel: 1
fail-fast: false
steps:
- name: checkout git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: free additional space on runner
run: ./.github/workflows/helpers/free_space_on_runner_gpu.sh
- name: install nix
uses: cachix/install-nix-action@v25
with:
github_access_token: '${{ secrets.GITHUB_TOKEN }}'
- uses: cachix/cachix-action@v14
with:
name: ff
skipPush: true
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: setup nix develop shell
uses: nicknovitski/[email protected]
env:
NIXPKGS_ALLOW_UNFREE: 1
with:
arguments: "--accept-flake-config --impure"
- name: ccache
uses: hendrikmuhs/[email protected]
- name: regenerate all dtgen files
run: |
proj dtgen --force
- name: run cmake
run: |
proj cmake
- name: build test binaries
run: cd build/normal && make -j8 kernels-tests
- name: run tests
# run: cd build/normal && ctest --progress --output-on-failure -L "^(kernels-tests)$"
run: |
nvidia-smi
cd build/normal && nixGL -- lib/kernels/test/kernels-tests