Skip to content

chore: Release stackablectl 1.2.1 (#420) #32

chore: Release stackablectl 1.2.1 (#420)

chore: Release stackablectl 1.2.1 (#420) #32

---
name: Stackablectl Release Pipeline
on:
push:
tags:
- "stackablectl-[0-9]+.[0-9]+.[0-9]+**"
env:
RUST_VERSION: 1.87.0
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
RUST_LOG: "info"
jobs:
release:
name: Release for ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-24.04
file-suffix: ""
- target: aarch64-unknown-linux-gnu
os: ubuntu-24.04-arm
file-suffix: ""
- target: x86_64-apple-darwin
os: macos-latest
file-suffix: ""
- target: aarch64-apple-darwin
os: macos-latest
file-suffix: ""
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e # v1
with:
toolchain: ${{ env.RUST_VERSION }}
targets: ${{ matrix.target }}
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: '^1.22.2'
- name: Build Binary
if: matrix.os != 'windows-latest'
run: cargo build --target ${{ matrix.target }} --release --package stackablectl
- name: Rename Binary
run: mv target/${{ matrix.target }}/release/stackablectl${{ matrix.file-suffix }} stackablectl-${{ matrix.target }}${{ matrix.file-suffix }}
- name: Upload Release Binary
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
with:
files: stackablectl-${{ matrix.target }}${{ matrix.file-suffix }}