Skip to content

Revert using specific git commit hashes in Swift Sargon - that preven… #71

Revert using specific git commit hashes in Swift Sargon - that preven…

Revert using specific git commit hashes in Swift Sargon - that preven… #71

Workflow file for this run

name: CD Android
on:
workflow_dispatch:
push:
tags:
- "**"
branches:
- develop
permissions:
id-token: write
contents: write
packages: write
env:
CARGO_TERM_COLOR: always
MACHINE: macos-14-xlarge
jobs:
build:
runs-on: macos-14-xlarge
env:
RUST_TOOLCHAIN: nightly-2024-01-11
RUST_COMPONENTS: "rust-std"
steps:
- uses: RDXWorks-actions/checkout@main
- name: Install Rust Toolchain for aarch64-linux-android
uses: RDXWorks-actions/toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: aarch64-linux-android
- name: Install Rust Toolchain for armv7-linux-androideabi
uses: RDXWorks-actions/toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: armv7-linux-androideabi
- name: Set up JDK 17
uses: RDXWorks-actions/setup-java@v3
with:
distribution: "adopt"
java-version: "17"
- name: Setup Android SDK
uses: RDXWorks-actions/setup-android@v2
- name: Install cargo-ndk
run: cargo install cargo-ndk
- name: Setup Env Variables
run: |
git fetch --prune --tags
echo "SARGON_VERSION=`git tag --sort=taggerdate | tail -1`-`git rev-parse --short @`" >> $GITHUB_ENV
- name: Build and publish Android
uses: RDXWorks-actions/gradle-build-action@main
with:
arguments: sargon-android:publish
build-root-directory: jvm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}