From 09132583631e47921aaaca70d3d2308ac0f37948 Mon Sep 17 00:00:00 2001 From: Proton Date: Thu, 27 Apr 2023 16:59:42 +0800 Subject: [PATCH] test_mat --- .github/workflows/test_matrix.yaml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test_matrix.yaml diff --git a/.github/workflows/test_matrix.yaml b/.github/workflows/test_matrix.yaml new file mode 100644 index 000000000..fcb0ff0c4 --- /dev/null +++ b/.github/workflows/test_matrix.yaml @@ -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' && '' }}