Skip to content

Commit 45b3709

Browse files
ci: test android workflow cleanup
1 parent 908a25a commit 45b3709

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/test-android.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: Test Android
2+
3+
# Tests the Android bindings for bdk-ffi on an Android emulator.
4+
# Builds Rust binaries, sets up Android emulator, and runs the connected tests.
5+
26
on:
37
workflow_dispatch:
48
push:
@@ -13,10 +17,11 @@ on:
1317
permissions: {}
1418

1519
jobs:
16-
build:
20+
test:
21+
name: "Test Android library"
1722
runs-on: ubuntu-24.04
1823
steps:
19-
- name: "Check out PR branch"
24+
- name: "Checkout PR branch"
2025
uses: actions/checkout@v4
2126
with:
2227
persist-credentials: false
@@ -27,29 +32,23 @@ jobs:
2732
distribution: temurin
2833
java-version: 17
2934

30-
- name: "Setup Android SDK"
35+
- name: "Set up Android SDK"
3136
uses: android-actions/setup-android@v3
3237

33-
- name: "Setup Android NDK"
38+
- name: "Set up Android NDK"
3439
uses: nttld/setup-ndk@v1
3540
with:
3641
ndk-version: r26c
3742

38-
- name: "Cache Rust"
39-
uses: actions/cache@v4
40-
with:
41-
path: |
42-
~/.cargo/registry
43-
~/.cargo/git
44-
./target
45-
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
43+
- name: "Set up Rust"
44+
uses: actions-rust-lang/setup-rust-toolchain@v1
4645

4746
- name: "Build Android library"
4847
run: |
4948
cd bdk-android
5049
bash ./scripts/build-linux-x86_64.sh
5150
52-
- name: Enable KVM
51+
- name: "Enable KVM"
5352
run: |
5453
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
5554
sudo udevadm control --reload-rules

0 commit comments

Comments
 (0)