Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nining377/dolby_beta
Browse files Browse the repository at this point in the history
  • Loading branch information
nining377 committed Feb 18, 2021
2 parents 5a61e40 + 8a4e336 commit b4993a9
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build CI

on:
- push
- pull_request

env:
WARN_ON_PR: "artifact upload is disabled due to the workflow is trigged by pull request."

jobs:
build:
name: Gradle CI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
name: Clone repository

- name: Prepare Java 11
uses: actions/setup-java@v1
with:
java-version: 11
java-package: jdk+fx

- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ hashFiles('**/*gradle*') }}
restore-keys: ${{ runner.os }}

- name: Build project
env:
DEBUG_KEY_PASSWORD: android
DEBUG_STORE_PASSWORD: android
DEBUG_KEY_ALIAS: androiddebugkey
run: |
if ${{ !!github.head_ref }}; then echo "::warning:: Gradle $WARN_ON_PR"; fi
gradle wrapper
bash gradlew assembleDebug
- name: Upload articact
uses: actions/upload-artifact@v2
if: ${{ !github.head_ref }}
with:
path: app/build/outputs/apk
name: binary

0 comments on commit b4993a9

Please sign in to comment.