From f2cfe4cee50e5197e0d55c7ea8f4087eda5318fa Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Mon, 25 Mar 2024 13:55:38 -0400 Subject: [PATCH] start a CI build of the Android APK --- .github/workflows/ant.yml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ant.yml diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml new file mode 100644 index 000000000..b65410f58 --- /dev/null +++ b/.github/workflows/ant.yml @@ -0,0 +1,40 @@ +# Mostly copied from https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant +# zlatinb + +name: Java CI + +on: [push] + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: GetText + run: sudo apt install gettext + - uses: actions/checkout@v4 + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + java-version: '8' + distribution: 'temurin' + - name : Generate override.properties + run: | + rm -f override.properties + echo "build.built-by=GitHub Actions" >> override.properties + echo "noExe=true" >> override.properties + - name: build with Gradle + run: | + ./gradlew assembleDebug + find . -name '*.apk' + + #- name: Upload installer.jar + # uses: actions/upload-artifact@v4 + # with: + # name: I2P-install.jar-${{ github.sha }} + # path: install.jar