Skip to content
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
self-hosted-runner:
Comment thread
sbernauer marked this conversation as resolved.
# BuildJet machines we are using
labels:
- buildjet-2vcpu-ubuntu-2204-arm
- buildjet-4vcpu-ubuntu-2204-arm
4 changes: 0 additions & 4 deletions .github/workflows/pr_general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jobs:
env:
RUSTC_BOOTSTRAP: 1
steps:
- name: Install host dependencies
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
submodules: recursive
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr_stackablectl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
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
Expand All @@ -58,6 +60,10 @@ jobs:
toolchain: ${{ env.RUST_VERSION }}
targets: ${{ matrix.target }}

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: '^1.22.2'

- uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
with:
key: build-stackablectl-${{ matrix.target }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release_stackablectl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- 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: ""
Expand All @@ -43,6 +46,10 @@ jobs:
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
Expand Down