Skip to content

CD Desktop Binaries #168

CD Desktop Binaries

CD Desktop Binaries #168

name: CD Desktop Binaries
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
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"
CUSTOM_BUILD_NAME: ${{ inputs.build_name }}
steps:
- uses: RDXWorks-actions/checkout@main
- name: Install Rust Toolchain for aarch64-apple-darwin
uses: RDXWorks-actions/toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}
target: aarch64-apple-darwin
- name: Set up JDK 17
uses: RDXWorks-actions/setup-java@v3
with:
distribution: "adopt"
java-version: "17"
- name: Prune Tags
run: git fetch --prune --tags
- name: Build and publish Desktop binaries
uses: RDXWorks-actions/gradle-build-action@main
with:
arguments: sargon-desktop-release:publish
build-root-directory: jvm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}