mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
name: Android Build
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
jobs:
|
|
build:
|
|
name: Run Build
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
- name: Unit tests
|
|
run: bash ./gradlew build
|
|
|
|
#jobs:
|
|
# test:
|
|
# runs-on: macos-latest
|
|
# steps:
|
|
# - name: checkout
|
|
# uses: actions/checkout@v2
|
|
#
|
|
# - name: run tests
|
|
# uses: reactivecircus/android-emulator-runner@v2
|
|
# with:
|
|
# api-level: 29
|
|
# script: bash ./gradlew connectedCheck
|
|
|
|
# jobs:
|
|
# # test:
|
|
# # name: Run Unit Tests
|
|
# # runs-on: ubuntu-18.04
|
|
|
|
# # steps:
|
|
# # - uses: actions/checkout@v1
|
|
# # - name: set up JDK 1.8
|
|
# # uses: actions/setup-java@v1
|
|
# # with:
|
|
# # java-version: 1.8
|
|
# # - name: Unit tests
|
|
# # run: bash ./gradlew test --stacktrace
|
|
|
|
# apk:
|
|
# name: Generate APK
|
|
# runs-on: ubuntu-18.04
|
|
|
|
# steps:
|
|
# - uses: actions/checkout@v1
|
|
# - name: set up JDK 1.8
|
|
# uses: actions/setup-java@v1
|
|
# with:
|
|
# java-version: 1.8
|
|
# - name: Build debug APK
|
|
# run: bash ./gradlew assembleDebug --stacktrace
|
|
# - name: Upload APK
|
|
# uses: actions/upload-artifact@v1
|
|
# with:
|
|
# name: MiraiAndroid
|
|
# path: app/build/outputs/apk/debug/app-debug.apk
|