From bc9fa42358476fd9c2d58935cefd7fe8b059a1d7 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 | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/native.yml b/.github/workflows/native.yml index ff56d559a..4875c8f4d 100644 --- a/.github/workflows/native.yml +++ b/.github/workflows/native.yml @@ -11,7 +11,7 @@ on: - main jobs: - native-build-test-workflow: + itk-wasm-native-build-test: runs-on: ubuntu-22.04 steps: @@ -21,4 +21,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 + 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 + + - 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