Skip to content

Commit 2687584

Browse files
authored
Merge pull request #104 from rive-app/simplifyGitActionsAttempt
Simplify git actions attempt
2 parents f90fb32 + 239c938 commit 2687584

File tree

2 files changed

+35
-40
lines changed

2 files changed

+35
-40
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,30 @@ on:
55
types: [released]
66

77
jobs:
8-
build:
9-
runs-on: macos-latest
10-
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
13-
with:
14-
token: ${{ secrets.RIVE_REPO_PAT }}
15-
submodules: recursive
16-
- name: Init submodule
17-
run: git submodule update --init
18-
- name: Build Android
19-
uses: reactivecircus/android-emulator-runner@v2
20-
with:
21-
api-level: 30
22-
target: google_apis
23-
script: ./gradlew kotlin:assembleRelease
24-
- name: Upload artifact
25-
uses: actions/upload-artifact@v2
26-
with:
27-
name: rive
28-
path: kotlin/build/outputs/aar/kotlin-release.aar
8+
# build:
9+
# runs-on: macos-latest
10+
# steps:
11+
# - name: Checkout
12+
# uses: actions/checkout@v2
13+
# with:
14+
# token: ${{ secrets.RIVE_REPO_PAT }}
15+
# submodules: recursive
16+
# - name: Init submodule
17+
# run: git submodule update --init
18+
# - name: Build Android
19+
# uses: reactivecircus/android-emulator-runner@v2
20+
# with:
21+
# api-level: 30
22+
# target: google_apis
23+
# script: ./gradlew kotlin:assembleRelease
24+
# - name: Upload artifact
25+
# uses: actions/upload-artifact@v2
26+
# with:
27+
# name: rive
28+
# path: kotlin/build/outputs/aar/kotlin-release.aar
2929

3030
publish:
3131
name: Release build and publish
32-
needs: build
3332
runs-on: ubuntu-latest
3433
steps:
3534
- name: Check out code
@@ -38,6 +37,7 @@ jobs:
3837
uses: actions/setup-java@v1
3938
with:
4039
java-version: 1.8
40+
4141
# Base64 decodes and pipes the GPG key content into the secret file
4242
- name: Prepare environment
4343
env:
@@ -46,19 +46,14 @@ jobs:
4646
run: |
4747
git fetch --unshallow
4848
sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
49+
4950
# Builds the release artifacts of the library
50-
- name: Download framework artifact
51-
uses: actions/download-artifact@v2
52-
with:
53-
name: rive
54-
path: kotlin/build/outputs/aar/kotlin-release.aar
51+
- name: Build Android
52+
run: ./gradlew kotlin:assembleRelease
53+
5554
# Runs upload, and then closes & releases the repository
5655
- name: Publish to MavenCentral
57-
uses: reactivecircus/android-emulator-runner@v2
58-
with:
59-
api-level: 30
60-
target: google_apis
61-
script: ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
56+
run: ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
6257
env:
6358
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6459
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

kotlin/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ dependencies {
5454

5555
}
5656

57+
// Commenting this out, this only really helps when you're doing local dev, but it means our git actions need abd!
58+
// static def getDeviceAbi() {
59+
// return "adb shell getprop ro.product.cpu.abi".execute().text.trim()
60+
// }
5761

58-
static def getDeviceAbi() {
59-
return "adb shell getprop ro.product.cpu.abi".execute().text.trim()
60-
}
61-
62-
task buildJNI(type: Exec) {
63-
workingDir '../cpp'
64-
commandLine './build.rive.for.sh', '-a', getDeviceAbi()
65-
}
62+
// task buildJNI(type: Exec) {
63+
// workingDir '../cpp'
64+
// commandLine './build.rive.for.sh', '-a', getDeviceAbi()
65+
// }
6666

6767
apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"

0 commit comments

Comments
 (0)