Skip to content

Commit 37beffb

Browse files
committed
Fix CI
1 parent 3215a2a commit 37beffb

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,15 @@ jobs:
3131
with:
3232
cache_postfix: cache-0
3333

34+
#----------------------------------------------------------------------------
35+
# Build and upload .apk packages
36+
#----------------------------------------------------------------------------
3437
build:
3538
needs: [cache_lfs]
3639

3740
name: Build APKs
3841
runs-on: ubuntu-latest
3942

40-
env:
41-
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
42-
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
43-
CMAKE_BUILD_PARALLEL_LEVEL: 4
44-
4543
steps:
4644
- name: Checkout
4745
uses: actions/checkout@v4
@@ -58,7 +56,7 @@ jobs:
5856
cache_postfix: cache-0
5957

6058
- name: Decode keystore
61-
run: echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > source/f3d/f3d-android-key.jks
59+
run: echo ${{ secrets.ANDROID_KEYSTORE_BASE64 }} | base64 -di > source/f3d/f3d-android-key.jks
6260

6361
- name: Set up JDK 17
6462
uses: actions/setup-java@v4
@@ -70,6 +68,9 @@ jobs:
7068
uses: gradle/actions/setup-gradle@v4
7169

7270
- name: Build APKs
71+
working-directory: ${{github.workspace}}/source
72+
env:
73+
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
7374
run: ./gradlew assembleRelease
7475

7576
- name: Upload APKs

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@ Use the Gradle wrapper to build:
5353
./gradlew assembleRelease
5454
```
5555

56+
> [!NOTE]
57+
> In order to build the release package, the signing file should be copied to `f3d/f3d-android-key.jks` and the environment variable `ANDROID_KEYSTORE_PASSWORD` should contain the correct password.
58+
5659
The resulting APK files are located in `f3d/build/outputs/apk/`.

0 commit comments

Comments
 (0)