forked from gemwalletcom/core
-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (64 loc) · 1.93 KB
/
release-stone-android.yml
File metadata and controls
75 lines (64 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Release - Gemstone Android
on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
ref_name:
description: "github ref name (tag)"
required: true
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
publish_gpr:
runs-on: ubuntu-latest
env:
ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/28.1.13356709
steps:
- name: Set version tag
run: |
if [ ${{ github.event.inputs.ref_name }} ]; then
echo "VER_NAME=${{ github.event.inputs.ref_name }}" >> $GITHUB_ENV
elif [ ${{ github.ref_type == 'tag' }} ]; then
echo "VER_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
else
echo "no ref_name or tag"
exit 1
fi
- uses: actions/checkout@v4
with:
ref: ${{ env.VER_NAME }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "zulu"
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
packages: 'build-tools;36.0.0 platforms;android-36 ndk;28.1.13356709'
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.8
- name: Install just
run: sudo apt install just
- name: Build Android Bindings
run: |
just --unstable install-android-targets && just --unstable bindgen-kotlin
working-directory: gemstone
- name: Publish to Github Packages
run: |
just --unstable publish-android
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: gemstone