From 6f9fe6e996041ac564dcdf4419bcad0b00c254f9 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Tue, 17 Sep 2024 17:58:54 -0400 Subject: [PATCH] ci(native): add packages-build-test job --- .github/workflows/native.yml | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/.github/workflows/native.yml b/.github/workflows/native.yml index ff56d559a..880804548 100644 --- a/.github/workflows/native.yml +++ b/.github/workflows/native.yml @@ -11,8 +11,12 @@ on: - main jobs: - native-build-test-workflow: - runs-on: ubuntu-22.04 + itk-wasm-native-build-test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + package: [compare-images] + os: [ubuntu-latest] steps: - uses: actions/checkout@v4 @@ -21,4 +25,28 @@ jobs: - name: Build and Test ITK-Wasm run: | - pixi run test-itk-wasm \ No newline at end of file + pixi run test-itk-wasm + + - name: Upload ITK-Wasm build artifacts + uses: actions/upload-artifact@v4 + with: + name: itk-wasm-build-${{ matrix.os }} + path: . + + packages-native-build-test: + needs: itk-wasm-native-build-test + runs-on: ${{ matrix.os }} + strategy: + matrix: + package: [compare-images] + os: [ubuntu-latest] + steps: + - name: Download ITK-Wasm build artifacts + uses: actions/download-artifact@v4 + with: + name: itk-wasm-build-${{ matrix.os }} + + - name: Build and Test Package + run: | + echo "Running on ${{ matrix.os }} for package ${{ matrix.package }}" + pixi run test-${{ matrix.package }} \ No newline at end of file