|
9 | 9 | jobs: |
10 | 10 | ubuntu-test: |
11 | 11 | name: Test OpenCvSharp |
12 | | - runs-on: ${{ matrix.os }} |
| 12 | + runs-on: ${{ matrix.runs-on }} |
13 | 13 |
|
14 | 14 | strategy: |
15 | 15 | matrix: |
16 | | - os: [ubuntu-22.04, ubuntu-24.04] |
| 16 | + include: |
| 17 | + - { os: linux, arch: x64, runs-on: ubuntu-22.04 } |
| 18 | + - { os: ubuntu.24.04, arch: x64, runs-on: ubuntu-24.04 } |
| 19 | + - { os: linux, arch: arm64, runs-on: ubuntu-22.04-arm } |
| 20 | + - { os: ubuntu.24.04, arch: arm64, runs-on: ubuntu-24.04-arm } |
| 21 | + # - { os: win, arch: x64, runs-on: windows-2022 } |
| 22 | + # - { os: win11, arch: x64, runs-on: windows-2025 } |
| 23 | + # - { os: win, arch: arm64, runs-on: windows-11-arm } |
| 24 | + - { os: osx, arch: x64, runs-on: macos-13 } |
| 25 | + - { os: osx, arch: arm64, runs-on: macos-14 } |
| 26 | + - { os: osx.15, arch: arm64, runs-on: macos-15 } |
17 | 27 |
|
18 | 28 | steps: |
19 | 29 | - name: Download OpenCvSharp Artifacts |
|
24 | 34 | RUN_ID=$(gh run list -R ${{ github.repository }} --workflow=opencvsharp.yml --branch=${{ github.ref_name }} --status=success --limit=1 --json databaseId | jq -r '.[0].databaseId') |
25 | 35 | echo "Latest opencvsharp run ID: $RUN_ID" |
26 | 36 | echo "Downloading artifact 'opencvsharp' from run ${RUN_ID}" |
27 | | - gh run download -R ${{ github.repository }} $RUN_ID --name opencvsharp-linux-x64-${{ matrix.os }} --dir opencvsharp |
| 37 | + gh run download -R ${{ github.repository }} $RUN_ID --name opencvsharp-${{ matrix.os }}-${{ matrix.arch }} --dir opencvsharp |
| 38 | +
|
| 39 | + echo "::group::OpenCvSharp Artifacts" |
28 | 40 | ls -lR opencvsharp |
| 41 | + echo "::endgroup::" |
29 | 42 |
|
30 | 43 | - name: Create test.c |
31 | 44 | run: | |
|
52 | 65 | - name: Upload Artifacts |
53 | 66 | uses: actions/upload-artifact@v4 |
54 | 67 | with: |
55 | | - name: test-linux-x64-${{ matrix.os }} |
| 68 | + name: test-${{ matrix.os }}-${{ matrix.arch }} |
56 | 69 | path: test |
0 commit comments