From 3ee92eb61425c6902f7ded625092e29a74c06658 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Fri, 7 Jun 2024 14:15:45 +0200 Subject: [PATCH] ? --- .github/workflows/ci_buid.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci_buid.yml b/.github/workflows/ci_buid.yml index 2157a532558..a8183927833 100644 --- a/.github/workflows/ci_buid.yml +++ b/.github/workflows/ci_buid.yml @@ -23,24 +23,21 @@ on: - 'main' jobs: - version-matrix: + build-matrix: strategy: # super important if you want to see all results, even if one fails # fail-fast is true by default fail-fast: true matrix: hardware: ["cuda", "rocm", "intel"] - steps: - - name: Build - id: build - uses: ./.github/workflows/build.yml # calls the one above ^ - with: - hardware: ${{ matrix.hardware }} - secrets: inherit - - name: Test - if: matrix.hardware == 'cuda' - uses: ./.github/workflows/integration_tests.yml # calls the one above ^ - with: - docker_image: ${{ steps.build.outputs.docker_image }} - docker_devices: ${{ steps.build.outputs.docker_devices }} - secrets: inherit + uses: ./.github/workflows/build.yml # calls the one above ^ + with: + hardware: ${{ matrix.hardware }} + secrets: inherit + integration_tests: + needs: build-matrix + uses: ./.github/workflows/integration_tests.yml # calls the one above ^ + with: + docker_image: ${{ steps.build.outputs.docker_image }} + docker_devices: ${{ steps.build.outputs.docker_devices }} + secrets: inherit