mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-16 17:20:33 +00:00
Added ARM64 macOS (Apple Silicon) build target support to the CI/CD pipeline by: 1. Including `aarch64-apple-darwin` as a new build variant in the build matrix 2. Adding proper exclusion rules to ensure the target only runs on macOS runners 3. Ensuring compatibility with the existing build scripts and packaging process This change enables native builds for Apple Silicon Macs, improving performance for users with M1/M2/M3/M4 processors while maintaining the same artifact organization and deployment process.
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: "setup"
|
|
|
|
description: "setup environment for rustfs"
|
|
|
|
inputs:
|
|
rust-version:
|
|
required: true
|
|
default: "stable"
|
|
description: "Rust version to use"
|
|
cache-shared-key:
|
|
required: true
|
|
default: ""
|
|
description: "Cache key for shared cache"
|
|
cache-save-if:
|
|
required: true
|
|
default: true
|
|
description: "Cache save condition"
|
|
run-os:
|
|
required: true
|
|
default: "ubuntu-latest"
|
|
description: "Running system"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install system dependencies
|
|
if: inputs.run-os == 'ubuntu-latest'
|
|
shell: bash
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y musl-tools build-essential lld libdbus-1-dev libwayland-dev libwebkit2gtk-4.1-dev libxdo-dev
|
|
|
|
- uses: arduino/setup-protoc@v3
|
|
with:
|
|
version: "30.2"
|
|
|
|
- uses: Nugine/setup-flatc@v1
|
|
with:
|
|
version: "24.3.25"
|
|
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ inputs.rust-version }}
|
|
components: rustfmt, clippy
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
cache-on-failure: true
|
|
cache-all-crates: true
|
|
shared-key: ${{ inputs.cache-shared-key }}
|
|
save-if: ${{ inputs.cache-save-if }}
|
|
|
|
- uses: mlugg/setup-zig@v1
|
|
- uses: taiki-e/install-action@cargo-zigbuild
|