Skip to content

Commit c65139f

Browse files
authored
Merge branch 'ci' into master
2 parents fef65fa + 9a8db28 commit c65139f

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

.github/workflows/build-android.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build Android CI
2+
3+
on:
4+
push
5+
6+
jobs:
7+
build-android:
8+
runs-on: [ubuntu-latest]
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-java@v1
12+
with:
13+
java-version: '12.x'
14+
- name: "Build"
15+
run: |
16+
./gradlew assembleDebug
17+
# - name: "Runner environment"
18+
# run: |
19+
# export GITHUB_REF_SLUG=$(if [ -z $GITHUB_HEAD_REF]; then echo ${GITHUB_REF##*/}; else echo $GITHUB_HEAD_REF; fi)
20+
# export GITHUB_SHA_SHORT=${GITHUB_SHA:0:7}
21+
# export BUILD_VERSION=$(git rev-list HEAD --first-parent --count)
22+
# echo $GITHUB_REF_SLUG $BUILD_VERSION $GITHUB_SHA_SHORT
23+
# export

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
.cxx
1010
*.aab
1111
*.apk
12+
.history

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ android.useAndroidX=true
1919
android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
2121
kotlin.code.style=official
22+
23+
org.gradle.daemon=true
24+
org.gradle.parallel=true

run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
./gradlew assembleDebug
2+
./gradlew installDebug
3+
adb shell am start -n vn.vhn.vhscode/.MainActivity ch

0 commit comments

Comments
 (0)