Skip to content

Commit 6f9fe6e

Browse files
committed
ci(native): add packages-build-test job
1 parent 007e79a commit 6f9fe6e

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

.github/workflows/native.yml

+31-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ on:
1111
- main
1212

1313
jobs:
14-
native-build-test-workflow:
15-
runs-on: ubuntu-22.04
14+
itk-wasm-native-build-test:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
package: [compare-images]
19+
os: [ubuntu-latest]
1620

1721
steps:
1822
- uses: actions/checkout@v4
@@ -21,4 +25,28 @@ jobs:
2125

2226
- name: Build and Test ITK-Wasm
2327
run: |
24-
pixi run test-itk-wasm
28+
pixi run test-itk-wasm
29+
30+
- name: Upload ITK-Wasm build artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: itk-wasm-build-${{ matrix.os }}
34+
path: .
35+
36+
packages-native-build-test:
37+
needs: itk-wasm-native-build-test
38+
runs-on: ${{ matrix.os }}
39+
strategy:
40+
matrix:
41+
package: [compare-images]
42+
os: [ubuntu-latest]
43+
steps:
44+
- name: Download ITK-Wasm build artifacts
45+
uses: actions/download-artifact@v4
46+
with:
47+
name: itk-wasm-build-${{ matrix.os }}
48+
49+
- name: Build and Test Package
50+
run: |
51+
echo "Running on ${{ matrix.os }} for package ${{ matrix.package }}"
52+
pixi run test-${{ matrix.package }}

0 commit comments

Comments
 (0)