-
Notifications
You must be signed in to change notification settings - Fork 46
29 lines (29 loc) · 1.05 KB
/
Copy pathUbuntu.yml
File metadata and controls
29 lines (29 loc) · 1.05 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
name: Ubuntu
on: [push, pull_request, workflow_dispatch]
jobs:
UbuntuRun:
runs-on: ubuntu-latest
steps:
- uses: Jimver/cuda-toolkit@v0.2.29
id: cuda-toolkit
with:
cuda: '12.6.0'
linux-local-args: '["--toolkit"]'
use-github-cache: false
- run: sudo apt-get update
- run: sudo apt-get install -y xorg-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
- run: nvcc -V
- name: Checkout
uses: actions/checkout@v4
- name: Create build directory
run: mkdir ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: cmake ../ -DCMAKE_CUDA_ARCHITECTURES=89
- name: Run make
working-directory: ${{github.workspace}}/build
run: make -j 4
#- name: Run Test
# working-directory: ${{github.workspace}}/build
# run: ctest --no-compress-output -T Test -C Release --output-on-failure
- run: echo "This job's status is ${{ job.status }}."