Skip to content

Commit

Permalink
CI: add cuda build
Browse files Browse the repository at this point in the history
  • Loading branch information
w3ntao committed Sep 28, 2024
1 parent ec935bc commit 6b123a7
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/cuda-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: build and render

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
cuda-build:
strategy:
fail-fast: false
matrix:
cuda: [ '11.5.2', '11.6.1', '11.7.0', '12.1.0' ] # took from PBRT-v4

name: GPU Build Only (CUDA ${{ matrix.cuda }})

runs-on: ubuntu-latest
steps:
- uses: jimver/[email protected]
id: cuda-toolkit
with:
cuda: ${{ matrix.cuda }}
method: 'network'
sub-packages: '[ "nvcc" ]'

- name: check NVCC
run: nvcc -V

- uses: actions/checkout@v4
with:
submodules: true

- name: Get cmake
uses: lukka/get-cmake@latest

- name: build
run:
mkdir build
cd build
cmake ..
make -j

0 comments on commit 6b123a7

Please sign in to comment.