Skip to content

Commit 0931444

Browse files
committed
test(android): simplify workflow further
- Set up lde outside of the android host, no need for install script - Remove now unused dependencies
1 parent 799c0eb commit 0931444

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,18 @@ jobs:
3737
if: "!matrix.android"
3838
run: lde test
3939

40+
- name: Setup lde (Android)
41+
if: matrix.android
42+
uses: lde-org/setup-lde@master
43+
with:
44+
version: nightly
45+
platform: Android
46+
4047
- name: Fix workspace permissions (Android)
4148
if: matrix.android
42-
run: chmod -R a+rw ${{ github.workspace }}
49+
run: |
50+
chmod -R a+rw ${{ github.workspace }}
51+
cp ~/.lde/lde ${{ github.workspace }}/lde
4352
4453
- name: Cache Android test image
4554
if: matrix.android
@@ -59,7 +68,7 @@ jobs:
5968
docker run --privileged --platform linux/arm64 --name termux-build \
6069
-e DEBIAN_FRONTEND=noninteractive \
6170
termux/termux-docker:aarch64 \
62-
bash -c "apt update && apt install -y git clang curl zip make cmake ninja openssl && curl -fsSL https://lde.sh/install | sh -s -- --nightly"
71+
bash -c "apt update && apt install -y clang cmake ninja openssl"
6372
docker commit termux-build termux-android:latest
6473
docker rm termux-build
6574
docker save termux-android:latest -o /tmp/termux-android.tar
@@ -73,4 +82,4 @@ jobs:
7382
-v ${{ github.workspace }}:/workspace \
7483
-w /workspace \
7584
termux-android:latest \
76-
bash -c "/data/data/com.termux/files/home/.lde/lde test"
85+
bash -c "/workspace/lde test"

0 commit comments

Comments
 (0)