Refactor and add slippage mode #436
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- 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 | |
- name: Restore cargo cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Install just | |
run: which just || 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 |