-
Notifications
You must be signed in to change notification settings - Fork 42
35 lines (29 loc) · 987 Bytes
/
flip_ci.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
33
34
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 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