-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for compiling with CUDA on Linux, add CI config
- Loading branch information
1 parent
6c49e64
commit 59325ff
Showing
2 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: FLIP CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
config: [Release, Debug] | ||
|
||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install CUDA | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: sudo apt install -y nvidia-cuda-toolkit g++-10 | ||
|
||
- name: Configure CMake | ||
run: > | ||
cmake -LA -B ${{github.workspace}}/build | ||
-DCMAKE_BUILD_TYPE=${{ matrix.config }} | ||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install | ||
-DCMAKE_CUDA_ARCHITECTURES=all | ||
-DCMAKE_CUDA_HOST_COMPILER=g++-10 | ||
-DFLIP_ENABLE_CUDA=${{ matrix.os == 'ubuntu-latest' }} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.config }} --target install |
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