Add prerequisite to job #224
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: 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: "test" | |
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 }} |