chore: Release stackablectl-24.3.2 (#234) #11
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: Stackablectl Release Pipeline | |
on: | |
push: | |
tags: | |
- "stackablectl-[0-9]+.[0-9]+.[0-9]+**" | |
env: | |
RUST_VERSION: 1.75.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-20.04 # We don't use ubuntu-latest because we want to build against an old glibc version. (18.04 has glibc 2.27, 20.04 has glibc 2.31, 22.04 has glibc 2.35) | |
file-suffix: "" | |
- target: aarch64-unknown-linux-gnu | |
os: buildjet-4vcpu-ubuntu-2204-arm # The ARM runners only support Ubuntu 22.04, so we can't pick 20.04 | |
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@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5 | |
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@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1 | |
with: | |
files: stackablectl-${{ matrix.target }}${{ matrix.file-suffix }} |