Skip to content

Commit 0bae588

Browse files
ci: run android test using make
1 parent 985edfb commit 0bae588

File tree

2 files changed

+41
-14
lines changed

2 files changed

+41
-14
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test kotlin bindings for android via make
2+
inputs:
3+
gh-token:
4+
required: true
5+
6+
runs:
7+
using: composite
8+
steps:
9+
- name: download armv7-linux-androideabi binaries
10+
uses: ./.github/actions/make/android/lib
11+
with:
12+
task: android-armv7
13+
gh-token: ${{ inputs.gh-token }}
14+
15+
- name: download aarch64-linux-android binaries
16+
uses: ./.github/actions/make/android/lib
17+
with:
18+
task: android-armv8
19+
gh-token: ${{ inputs.gh-token }}
20+
21+
- name: download x86_64-linux-android binaries
22+
uses: ./.github/actions/make/android/lib
23+
with:
24+
task: android-x86
25+
gh-token: ${{ inputs.gh-token }}
26+
27+
- name: fetch android bindings
28+
uses: ./.github/actions/make/android/bindings
29+
with:
30+
gh-token: ${{ inputs.gh-token }}
31+
32+
- name: make android-test
33+
uses: ./.github/actions/make
34+
with:
35+
key: android-test
36+
make-rule: android-test
37+
target-path: |
38+
.stamps/android-test
39+
gh-token: ${{ inputs.gh-token }}

.github/workflows/test-android.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
if: github.event_name == 'pull_request'
1414
runs-on: ubuntu-latest
1515

16-
env:
17-
ANDROID_NDK_VERSION: 28.1.13356709
18-
1916
steps:
2017
- uses: actions/checkout@v6
2118
- name: set up jdk 17
@@ -33,16 +30,7 @@ jobs:
3330
sudo udevadm control --reload-rules
3431
sudo udevadm trigger --name-match=kvm
3532
36-
- name: download android package
37-
uses: ./.github/actions/make/android/package
38-
with:
39-
gh-token: ${{ secrets.GITHUB_TOKEN }}
40-
4133
- name: android instrumentation tests
42-
uses: reactivecircus/android-emulator-runner@v2
34+
uses: ./.github/actions/make/android/test
4335
with:
44-
api-level: 32
45-
arch: x86_64
46-
working-directory: ./crypto-ffi/bindings
47-
script: ./gradlew android:connectedAndroidTest
48-
36+
gh-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)