From 4c6731fb49b721eb904bbd50250371c532f2b592 Mon Sep 17 00:00:00 2001 From: BinTianqi Date: Fri, 24 May 2024 20:31:54 +0800 Subject: [PATCH] enable CI --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c7ba83b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build Debug APK + +on: + push: + paths-ignore: + - '**.md' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: '21' + + - name: Build with Gradle + run: ./gradlew assembleDebug + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: app-debug.apk + path: app/build/outputs/apk/debug/app-debug.apk \ No newline at end of file