Skip to content

Commit cdc2c6e

Browse files
committed
Setup fastlane workflow
1 parent e36dae7 commit cdc2c6e

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
File renamed without changes.

.github/workflows/fastlane.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: fastlane
2+
3+
on: push
4+
5+
jobs:
6+
fastlane:
7+
timeout-minutes: 60
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '17'
16+
distribution: 'temurin'
17+
- name: Setup Android SDK
18+
uses: android-actions/setup-android@v3
19+
with:
20+
cmdline-tools-version: 10406996
21+
accept-android-sdk-licenses: true
22+
log-accepted-android-sdk-licenses: false
23+
- name: Setup Android NDK
24+
run: |
25+
sdkmanager "ndk;26.0.10792818"
26+
- uses: actions/cache@v3
27+
with:
28+
path: ~/.cargo/registry
29+
key: "cargo-registry-${{ hashFiles('**/Cargo.lock') }}"
30+
- uses: actions/cache@v3
31+
with:
32+
path: ~/.cargo/git
33+
key: "cargo-index-${{ hashFiles('**/Cargo.lock') }}"
34+
- uses: actions/cache@v3
35+
with:
36+
path: target
37+
key: cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
38+
- name: Install rust
39+
uses: dtolnay/rust-toolchain@b44cb146d03e8d870c57ab64b80f04586349ca5d
40+
with:
41+
toolchain: "1.75.0"
42+
targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
43+
- name: Build vault-android
44+
run: |
45+
cd vault-android
46+
echo 'sdk.dir=/usr/local/lib/android/sdk' >> local.properties
47+
echo 'android.ndkVersion=26.0.10792818' >> local.properties
48+
49+
./gradlew generateUniFFIBindings
50+
51+
GRADLE_CARGO_PROFILE=release ./gradlew cargoBuild
52+
53+
./gradlew assembleRelease

0 commit comments

Comments
 (0)