Skip to content

Commit 0eeee1e

Browse files
committed
move out raw run
1 parent 480ac78 commit 0eeee1e

File tree

1 file changed

+54
-15
lines changed

1 file changed

+54
-15
lines changed

.github/workflows/test-opencvsharp.yml

Lines changed: 54 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
test:
11-
name: Fast Test
10+
build:
11+
name: Build Test
1212
runs-on: ${{ matrix.runs-on }}
1313
defaults:
1414
run:
@@ -213,15 +213,6 @@ jobs:
213213
run: |
214214
cp -r opencvsharp/lib/* test
215215
216-
- name: Run Test
217-
if: matrix.os != 'android'
218-
run: |
219-
if [[ "${{ matrix.image }}" != "" ]]; then
220-
docker run -d --name runner -v "$PWD":${{ github.workspace }} -w ${{ github.workspace }} ${{ matrix.image }} bash -c "cd test && ./test.exe"
221-
else
222-
cd test && ./test.exe
223-
fi
224-
225216
- name: Upload Artifacts
226217
uses: actions/upload-artifact@v4
227218
with:
@@ -231,7 +222,7 @@ jobs:
231222
android-x64-test:
232223
name: Android x64 Test
233224
runs-on: ubuntu-24.04
234-
needs: test
225+
needs: build
235226

236227
steps:
237228
- name: Download Artifacts
@@ -259,14 +250,62 @@ jobs:
259250
adb push -a test /data/local/tmp/
260251
adb shell 'cd /data/local/tmp/test && ./test.exe'
261252
262-
more-docker-test:
263-
name: More Docker Test
253+
raw-test:
254+
name: Raw Test
255+
runs-on: ${{ matrix.runs-on }}
256+
continue-on-error: true
257+
defaults:
258+
run:
259+
shell: bash
260+
needs: build
261+
strategy:
262+
fail-fast: false
263+
matrix:
264+
include:
265+
- { os: centos.7, arch: x64, runs-on: ubuntu-22.04 }
266+
- { os: centos.7, arch: x64, runs-on: ubuntu-24.04 }
267+
- { os: centos.7, arch: arm64, runs-on: ubuntu-22.04-arm }
268+
- { os: centos.7, arch: arm64, runs-on: ubuntu-24.04-arm }
269+
- { os: rhel.8, arch: x64, runs-on: ubuntu-22.04 }
270+
- { os: rhel.8, arch: x64, runs-on: ubuntu-24.04 }
271+
- { os: rhel.8, arch: arm64, runs-on: ubuntu-22.04-arm }
272+
- { os: rhel.8, arch: arm64, runs-on: ubuntu-24.04-arm }
273+
- { os: rhel.9, arch: x64, runs-on: ubuntu-22.04 }
274+
- { os: rhel.9, arch: x64, runs-on: ubuntu-24.04 }
275+
- { os: rhel.9, arch: arm64, runs-on: ubuntu-22.04-arm }
276+
- { os: rhel.9, arch: arm64, runs-on: ubuntu-24.04-arm }
277+
- { os: linux, arch: x64, runs-on: ubuntu-22.04 }
278+
- { os: linux, arch: x64, runs-on: ubuntu-24.04 }
279+
- { os: linux, arch: arm64, runs-on: ubuntu-22.04-arm }
280+
- { os: linux, arch: arm64, runs-on: ubuntu-24.04-arm }
281+
- { os: ubuntu.24.04, arch: x64, runs-on: ubuntu-22.04 } # expects fails
282+
- { os: ubuntu.24.04, arch: arm64, runs-on: ubuntu-22.04-arm } # expects fails
283+
- { os: ubuntu.24.04, arch: x64, runs-on: ubuntu-24.04 }
284+
- { os: ubuntu.24.04, arch: arm64, runs-on: ubuntu-24.04-arm }
285+
- { os: macos.13, arch: x64, runs-on: macos.13 }
286+
- { os: macos.14, arch: arm64, runs-on: macos.14 }
287+
- { os: macos.14, arch: arm64, runs-on: macos.15 }
288+
- { os: macos.15, arch: arm64, runs-on: macos.15 }
289+
steps:
290+
- name: Download Artifacts
291+
uses: actions/download-artifact@v4
292+
with:
293+
name: test-${{ matrix.os }}-${{ matrix.arch }}
294+
path: test
295+
296+
- name: Run Tests
297+
run: |
298+
chmod +x test/test.exe
299+
cd test && ls && ldd ./test.exe && ./test.exe
300+
301+
docker-test:
302+
name: Docker Test
264303
runs-on: ${{ matrix.runs-on }}
265304
continue-on-error: true
266305
defaults:
267306
run:
268307
shell: bash
269-
needs: test
308+
needs: build
270309
strategy:
271310
fail-fast: false
272311
matrix:

0 commit comments

Comments
 (0)