2023-12-01 08:44:57 +08:00
|
|
|
name: Android CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-12-05 20:19:12 +08:00
|
|
|
- name: Check out
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: "recursive"
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2023-12-01 08:46:38 +08:00
|
|
|
- name: set up JDK 17
|
2023-12-06 01:37:52 +08:00
|
|
|
uses: actions/setup-java@v4
|
2023-12-01 08:44:57 +08:00
|
|
|
with:
|
|
|
|
distribution: 'temurin'
|
2023-12-05 20:19:12 +08:00
|
|
|
java-version: '17'
|
2023-12-01 08:44:57 +08:00
|
|
|
|
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
2023-12-05 20:19:12 +08:00
|
|
|
|
2023-12-01 08:44:57 +08:00
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew assembleRelease
|
2023-12-05 20:19:12 +08:00
|
|
|
|
|
|
|
- name: Upload PlayIntegrityFix.zip
|
2023-12-01 09:02:30 +08:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: PlayIntegrityFix
|
2023-12-05 20:19:12 +08:00
|
|
|
path: module/*
|