This commit is contained in:
Nicolas Patry 2024-06-07 14:15:45 +02:00
parent 3684439a0e
commit 3ee92eb614

View File

@ -23,24 +23,21 @@ on:
- 'main' - 'main'
jobs: jobs:
version-matrix: build-matrix:
strategy: strategy:
# super important if you want to see all results, even if one fails # super important if you want to see all results, even if one fails
# fail-fast is true by default # fail-fast is true by default
fail-fast: true fail-fast: true
matrix: matrix:
hardware: ["cuda", "rocm", "intel"] hardware: ["cuda", "rocm", "intel"]
steps: uses: ./.github/workflows/build.yml # calls the one above ^
- name: Build with:
id: build hardware: ${{ matrix.hardware }}
uses: ./.github/workflows/build.yml # calls the one above ^ secrets: inherit
with: integration_tests:
hardware: ${{ matrix.hardware }} needs: build-matrix
secrets: inherit uses: ./.github/workflows/integration_tests.yml # calls the one above ^
- name: Test with:
if: matrix.hardware == 'cuda' docker_image: ${{ steps.build.outputs.docker_image }}
uses: ./.github/workflows/integration_tests.yml # calls the one above ^ docker_devices: ${{ steps.build.outputs.docker_devices }}
with: secrets: inherit
docker_image: ${{ steps.build.outputs.docker_image }}
docker_devices: ${{ steps.build.outputs.docker_devices }}
secrets: inherit