Skip to content

feat: Select versions of demos & stacks #283

feat: Select versions of demos & stacks

feat: Select versions of demos & stacks #283

Workflow file for this run

---
name: Pull Request Stackablectl
on:
pull_request:
paths:
- ".github/workflows/pr_stackablectl.yml"
- "docs/modules/stackablectl/**"
- "rust/stackable-cockpit/**"
- "rust/stackablectl/**"
- "rust/helm-sys/**"
- "Cargo.lock"
- "go.sum"
- "extra/**"
env:
RUST_VERSION: 1.80.1
GO_VERSION: '^1.22.5'
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
RUST_LOG: "info"
jobs:
general-checks:
name: General Pull Request Checks
uses: ./.github/workflows/pr_general.yml
build:
name: Build stackablectl for ${{ matrix.target }}
runs-on: ${{ matrix.os }}
needs:
- general-checks
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: buildjet-4vcpu-ubuntu-2204-arm
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
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@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GO_VERSION }}
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
key: build-stackablectl-${{ matrix.target }}
- name: Build for non-Windows
if: matrix.os != 'windows-latest'
run: cargo build --target ${{ matrix.target }} -p stackablectl
- name: Ensure shell completions up-to-date
if: matrix.os == 'x86_64-unknown-linux-gnu'
run: |
cargo xtask gen-comp
git diff --exit-code
- name: Ensure man page is up-to-date
if: matrix.os == 'x86_64-unknown-linux-gnu'
run: |
cargo xtask gen-man
git diff --exit-code