-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (39 loc) · 1.08 KB
/
ci.yaml
File metadata and controls
50 lines (39 loc) · 1.08 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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install system deps
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake libssl-dev
- name: Install CUDA
uses: Jimver/cuda-toolkit@v0.2.30
- name: Configure CMake
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: |
cmake --build build --parallel
- name: Test
run: |
ctest --test-dir build --output-on-failure
doc:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v6
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz
- name: Build documentation
run: |
doxygen
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: doc/html