-
Notifications
You must be signed in to change notification settings - Fork 13
32 lines (32 loc) · 1018 Bytes
/
Ubuntu.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
name: Ubuntu
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
UbuntuRun:
runs-on: ubuntu-22.04
steps:
- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '11.7.0'
linux-local-args: '["--toolkit"]'
- 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@v2
- name: Create build directory
run: mkdir ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
run: cmake ../
- 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 --output-on-failure -T Test --build-config Release