Skip to content

Add thorchain config nodes #245

Add thorchain config nodes

Add thorchain config nodes #245

name: Gemstone Android
on:
push:
branches: ["main"]
paths:
- "gemstone/**"
pull_request:
branches: ["main"]
paths:
- "gemstone/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
build_android:
runs-on: ubuntu-latest
defaults:
run:
working-directory: gemstone
steps:
- uses: actions/checkout@v3
- name: Clean space
run: |
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
echo "======================================================"
df -h
- 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
- 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/[email protected]
- name: Install just
run: cargo install just
- name: Setup NDK
run: just install-ndk
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build Android Bindings
run: |
df -h
just install-android-targets
just build-android