Update papersUsingFLIP.md #103
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: 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 update && sudo apt install -y nvidia-cuda-toolkit g++-10 | |
- name: Configure CMake | |
run: > | |
cmake -LA -B ${{github.workspace}}/src/build -S ${{github.workspace}}/src/ | |
-DCMAKE_BUILD_TYPE=${{ matrix.config }} | |
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/src/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}}/src/build --config ${{ matrix.config }} --target install |