Skip to content

Commit 0c0aa2a

Browse files
committed
link into android-x64-test
1 parent 3f22350 commit 0c0aa2a

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.github/workflows/test-opencvsharp.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,26 +222,36 @@ jobs:
222222
cd test && ./test.exe
223223
fi
224224
225-
- name: Enable KVM group perms(android-x64 only)
226-
if: matrix.os == 'android' && matrix.arch == 'x64'
225+
- name: Upload Artifacts
226+
uses: actions/upload-artifact@v4
227+
with:
228+
name: test-${{ matrix.os }}-${{ matrix.arch }}
229+
path: test
230+
231+
android-x64-test:
232+
name: Test for Android x64
233+
runs-on: ubuntu-24.04
234+
needs: test
235+
236+
steps:
237+
- name: Download Artifacts
238+
uses: actions/download-artifact@v4
239+
with:
240+
name: test-android-x64
241+
path: test
242+
243+
- name: Enable KVM group perms
227244
run: |
228245
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
229246
sudo udevadm control --reload-rules
230247
sudo udevadm trigger --name-match=kvm
231248
232249
- name: Run Test on Android
233-
if: matrix.os == 'android' && matrix.arch == 'x64'
234250
uses: reactivecircus/android-emulator-runner@v2
235251
with:
236252
api-level: 28
237253
arch: ${{ matrix.arch == 'x64' && 'x86_64' || 'arm64-v8a' }}
238254
target: google_apis
239255
script: |
240256
adb push -a test /data/local/tmp/
241-
adb shell 'cd /data/local/tmp/test && ./test.exe'
242-
243-
- name: Upload Artifacts
244-
uses: actions/upload-artifact@v4
245-
with:
246-
name: test-${{ matrix.os }}-${{ matrix.arch }}
247-
path: test
257+
adb shell 'cd /data/local/tmp/test && ./test.exe'

0 commit comments

Comments
 (0)