mirror of
https://github.com/izzy2lost/docker-android.git
synced 2026-06-19 01:16:28 -07:00
Update build-sm64.yml
This commit is contained in:
@@ -1,35 +1,40 @@
|
||||
name: Build APK with Valid Docker Image
|
||||
name: Build APK with Valid Docker Tag
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [armv7, arm64] # Build for both architectures
|
||||
arch: [armv7, arm64] # armv7 uses Houdini; arm64 uses native emulator
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Start Android emulator
|
||||
uses: docker://izzy2lost/docker-android/docker:emulator
|
||||
uses: docker://budtmo/docker-android:emulator_11.0 # Valid tag from README
|
||||
with:
|
||||
args: >
|
||||
-e ANDROID_DEVICE="Nexus 5"
|
||||
-e EMULATOR_DEVICE="Samsung Galaxy S10" # Device from README example
|
||||
-e EMULATOR_ARGS="-no-window -no-audio -no-boot-anim"
|
||||
-e ARCH=${{ matrix.arch }} # armv7 uses Houdini; arm64 uses native emulation
|
||||
-e ARCH=${{ matrix.arch }}
|
||||
-v ${{ github.workspace }}:/root/workspace
|
||||
|
||||
- name: Install Termux and build APK
|
||||
run: |
|
||||
# Install Termux and push your script
|
||||
# Install Termux
|
||||
curl -L -o termux.apk "https://f-droid.org/repo/com.termux_$(curl -s https://api.github.com/repos/termux/termux-app/releases/latest | grep -oP '"tag_name": "\K[^"]+').apk"
|
||||
adb install termux.apk
|
||||
|
||||
# Run your build script
|
||||
adb push myscript.sh /data/data/com.termux/files/home/
|
||||
adb shell "chmod +x /data/data/com.termux/files/home/myscript.sh"
|
||||
adb shell "cd /data/data/com.termux/files/home && ./myscript.sh"
|
||||
|
||||
- name: Upload APK
|
||||
- name: Upload APK artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: sm64coopdx-${{ matrix.arch }}
|
||||
|
||||
Reference in New Issue
Block a user