Refactor SwapperError handling #1733
This file contains hidden or 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: CI - Gemstone Android | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "gemstone/**" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "gemstone/**" | |
| - ".github/workflows/ci-stone-android.yml" | |
| 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 | |
| env: | |
| ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/28.1.13356709 | |
| ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk/28.1.13356709 | |
| defaults: | |
| run: | |
| working-directory: gemstone | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - 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' | |
| - name: Restore cargo cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/[email protected] | |
| - name: Install just | |
| uses: extractions/setup-just@v2 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Install Android Targets | |
| run: just install-android-targets | |
| - name: Build Android Bindings | |
| env: | |
| GITHUB_USER: ${{ github.actor }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: just build-android |