-
Notifications
You must be signed in to change notification settings - Fork 52
63 lines (54 loc) · 1.56 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
name: Linux GPU Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: [ self-hosted, linux, x64, gpu ]
env:
DEBIAN_FRONTEND: noninteractive
BUILDCACHE_COMPRESS: true
BUILDCACHE_DIRECT_MODE: true
BUILDCACHE_ACCURACY: SLOPPY
BUILDCACHE_MAX_CACHE_SIZE: 536870912
UBSAN_OPTIONS: halt_on_error=1:abort_on_error=1
CUDACXX: /usr/local/cuda/bin/nvcc
CLICOLOR_FORCE: 1
steps:
- uses: actions/checkout@v3
- name: Get deps
run: mkdir -p ~/deps && mv ~/deps .
- name: CMake
run: |
cmake ${{ matrix.config.cross }} \
-G Ninja -S . -B build \
-DCMAKE_C_COMPILER=gcc-12 \
-DCMAKE_CXX_COMPILER=g++-12 \
-DCMAKE_BUILD_TYPE=Release \
-DMOTIS_CUDA=On \
-DMOTIS_AVX=Off \
-DMOTIS_AVX2=Off \
-DMOTIS_WITH_WEBUI=${{ matrix.config.webui }}
- name: Build
run: |
./build/buildcache/bin/buildcache -z
cmake --build build --target \
motis \
motis-test \
motis-itest
./build/buildcache/bin/buildcache -s
- name: Save deps
if: always()
run: mv deps ~
- name: Run Tests
run: ${{ matrix.config.emulator }} ./build/motis-test
- name: Run Integration Tests
run: ${{ matrix.config.emulator }} ./build/motis-itest