This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
update: build apk with github action #907
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
schedule: | |
- cron: '23 3 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Test&Build with Gradle | |
run: ./gradlew test :app:assembleDebug | |
- name: Upload a Build Artifact | |
if: always() | |
uses: actions/[email protected] | |
with: | |
name: build-test-outputs | |
path: | | |
app/build/reports | |
BilibiliLiveApiClient/build/test-results/test | |
./**/*.apk |