diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 00000000..aa2d2b97 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,6 @@ +--- +self-hosted-runner: + # BuildJet machines we are using + labels: + - buildjet-2vcpu-ubuntu-2204-arm + - buildjet-4vcpu-ubuntu-2204-arm diff --git a/.github/workflows/pr_general.yml b/.github/workflows/pr_general.yml index 0239a31e..5eed611e 100644 --- a/.github/workflows/pr_general.yml +++ b/.github/workflows/pr_general.yml @@ -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 diff --git a/.github/workflows/pr_stackablectl.yml b/.github/workflows/pr_stackablectl.yml index bb991efb..dd675e50 100644 --- a/.github/workflows/pr_stackablectl.yml +++ b/.github/workflows/pr_stackablectl.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/release_stackablectl.yml b/.github/workflows/release_stackablectl.yml index 6113f9bb..ff1b52f6 100644 --- a/.github/workflows/release_stackablectl.yml +++ b/.github/workflows/release_stackablectl.yml @@ -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: "" @@ -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