Skip to content

Put -bins suffix back and fetch tags #228

Put -bins suffix back and fetch tags

Put -bins suffix back and fetch tags #228

Workflow file for this run

name: CD Android
on:
workflow_dispatch:
inputs:
build_name:
description: "A custom version name. The resulting name will have the format <cargo.version.patch>-<custom-name>-<rev> (E.g. 1.0.23-custom-name-2eb68d8c)."
required: true
type: string
push:
tags:
- "**"
branches:
- main
- ci/ubuntu-runners
permissions:
id-token: write
contents: write
packages: write
env:
CARGO_TERM_COLOR: always
MACHINE: ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest
env:
RUST_TOOLCHAIN: nightly-2024-07-30
RUST_COMPONENTS: "rust-std"
CUSTOM_BUILD_NAME: ${{ inputs.build_name }}
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: Prune Tags
run: git fetch --prune --tags
- 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 }}