Skip to content

Commit

Permalink
test_mat
Browse files Browse the repository at this point in the history
  • Loading branch information
feisuzhu committed Apr 27, 2023
1 parent 7b62930 commit 97bf873
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test_matrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test Matrix
on:
push:
branches:
- master

jobs:
build_linux:
name: Build Linux
timeout-minutes: 30
strategy:
matrix:
cuda: ['', cuda]
llvm: ['', llvm]
gl: ['', gl]
vk: ['', vk]
python: ["3.7", "3.8"]
include:
- {cuda: cuda, llvm: llvm, gl: gl, vk: vk, designated: designated}
exclude:
- {llvm: '', cuda: cuda}
runs-on: ubuntu-latest

steps:
- name:
run: echo $TAICHI_CMAKE_ARGS des=${{ matrix.designated }}, should=$SHOULD_TAG_CONFIG
env:
TAICHI_CMAKE_ARGS: >-
-DTI_WITH_CUDA:BOOL=${{ matrix.cuda && 'ON' || 'OFF' }}
-DTI_WITH_LLVM:BOOL=${{ matrix.llvm && 'ON' || 'OFF' }}
-DTI_WITH_OPENGL:BOOL=${{ matrix.gl && 'ON' || 'OFF' }}
-DTI_WITH_VULKAN:BOOL=${{ matrix.vk && 'ON' || 'OFF' }}
-DTI_WITH_METAL:BOOL=OFF
-DTI_WITH_BACKTRACE:BOOL=ON
-DTI_BUILD_TESTS:BOOL=ON
SHOULD_TAG_CONFIG: ${{ matrix.designated && '' || '1' }}

0 comments on commit 97bf873

Please sign in to comment.