Update README.md #427
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |