From ebb0c24525cd7bd66583eba49fd6aa80d4d977ea Mon Sep 17 00:00:00 2001 From: izzy2lost Date: Sat, 8 Mar 2025 12:01:56 -0500 Subject: [PATCH] Update build-sm64.yml --- .github/workflows/build-sm64.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-sm64.yml b/.github/workflows/build-sm64.yml index b4421d5..dece285 100644 --- a/.github/workflows/build-sm64.yml +++ b/.github/workflows/build-sm64.yml @@ -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 }}