Update build-sm64.yml

This commit is contained in:
izzy2lost
2025-03-08 12:01:56 -05:00
committed by GitHub
parent 592f4157c7
commit ebb0c24525
+13 -8
View File
@@ -1,35 +1,40 @@
name: Build APK with Valid Docker Image name: Build APK with Valid Docker Tag
on: on:
workflow_dispatch: push:
branches: [master]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
arch: [armv7, arm64] # Build for both architectures arch: [armv7, arm64] # armv7 uses Houdini; arm64 uses native emulator
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Start Android emulator - name: Start Android emulator
uses: docker://izzy2lost/docker-android/docker:emulator uses: docker://budtmo/docker-android:emulator_11.0 # Valid tag from README
with: with:
args: > 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 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 -v ${{ github.workspace }}:/root/workspace
- name: Install Termux and build APK - name: Install Termux and build APK
run: | 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 adb install termux.apk
# Run your build script
adb push myscript.sh /data/data/com.termux/files/home/ 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" adb shell "cd /data/data/com.termux/files/home && ./myscript.sh"
- name: Upload APK - name: Upload APK artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: sm64coopdx-${{ matrix.arch }} name: sm64coopdx-${{ matrix.arch }}