diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml new file mode 100644 index 00000000..bdd73ac8 --- /dev/null +++ b/.github/workflows/build-android.yml @@ -0,0 +1,35 @@ +name: android-build + +on: [push, pull_request] + +jobs: + build-apk-for-android: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Cloning modlaucher repo and preparing for building + run: | + git clone https://github.com/ItzVladik/srceng-mod-launcher + sudo apt-get update + sudo apt-get install -f -y openjdk-8-jre zip apksigner imagemagick + - name: Build Android (32 bit) + run: | + scripts/build-android-armv7a.sh + - name: Build Android (64 bit) + run: | + chmod +x scripts/build-android-aarch64.sh + scripts/build-android-aarch64.sh + - name: Build APK + run: | + chmod +x scripts/build-apk.sh + scripts/build-apk.sh + - name: Rename APK + run: | + mv srceng-mod-launcher/build/android/mod-signed.apk mod-release.apk + + - name: 'Upload Artifact' + uses: actions/upload-artifact@v3 + with: + name: mod-apk + path: mod-release.apk diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6aaffaa5..e463f25c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,31 +31,6 @@ jobs: name: ubuntu-amd64 path: bin - build-apk-for-android: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build Android (32 bit) - run: | - scripts/build-android-armv7a.sh - - name: Build Android (64 bit) - run: | - chmod +x scripts/build-android-aarch64.sh - scripts/build-android-aarch64.sh - - name: Build APK - run: | - sudo apt-get update - sudo apt-get install -f -y openjdk-8-jre zip apksigner imagemagick - chmod +x scripts/build-apk.sh - scripts/build-apk.sh - - - name: 'Upload Artifact' - uses: actions/upload-artifact@v3 - with: - name: base-apk - path: apk-engine/build/android/base-signed.apk - build-windows-i386: runs-on: windows-latest