-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.12 KB
/
ci.yml
File metadata and controls
52 lines (43 loc) · 1.12 KB
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
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format-check:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check C/C++/CUDA formatting
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '17'
check-path: '.'
exclude-regex: '(^|/)(build|third_party|external|vendor|\.git)(/|$)'
fallback-style: 'LLVM'
cmake-configure:
name: CMake Configure
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install CUDA toolkit
uses: Jimver/cuda-toolkit@v0.2.24
with:
cuda: '12.4.1'
sub-packages: >-
nvcc
libcudart-dev
- name: Configure project
run: cmake -S . -B build -DBUILD_TESTS=ON
- name: Build project
run: cmake --build build -j