mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
@@ -166,28 +166,23 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
# Linux x86_64 builds on x86 runners
|
||||
# Linux builds
|
||||
- os: ubicloud-standard-4
|
||||
target: x86_64-unknown-linux-musl
|
||||
cross: false
|
||||
platform: linux
|
||||
arch: x86_64
|
||||
- os: ubicloud-standard-4
|
||||
target: aarch64-unknown-linux-musl
|
||||
cross: true
|
||||
platform: linux
|
||||
- os: ubicloud-standard-4
|
||||
target: x86_64-unknown-linux-gnu
|
||||
cross: false
|
||||
platform: linux
|
||||
arch: x86_64
|
||||
# Linux aarch64 builds on ARM runners (native compilation)
|
||||
- os: ubicloud-standard-4-arm
|
||||
target: aarch64-unknown-linux-musl
|
||||
cross: false
|
||||
platform: linux
|
||||
arch: aarch64
|
||||
- os: ubicloud-standard-4-arm
|
||||
- os: ubicloud-standard-4
|
||||
target: aarch64-unknown-linux-gnu
|
||||
cross: false
|
||||
cross: true
|
||||
platform: linux
|
||||
arch: aarch64
|
||||
# macOS builds
|
||||
- os: macos-latest
|
||||
target: aarch64-apple-darwin
|
||||
@@ -217,7 +212,7 @@ jobs:
|
||||
with:
|
||||
rust-version: stable
|
||||
target: ${{ matrix.target }}
|
||||
cache-shared-key: build-${{ matrix.arch }}-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
|
||||
cache-shared-key: build-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
cache-save-if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
|
||||
install-cross-tools: ${{ matrix.cross }}
|
||||
@@ -264,10 +259,6 @@ jobs:
|
||||
cargo zigbuild --release --target ${{ matrix.target }} -p rustfs --bins
|
||||
fi
|
||||
else
|
||||
# Native compilation - use mold linker on Linux for faster linking
|
||||
if [[ "${{ matrix.platform }}" == "linux" ]]; then
|
||||
export RUSTFLAGS="${RUSTFLAGS} -C link-arg=-fuse-ld=mold"
|
||||
fi
|
||||
cargo build --release --target ${{ matrix.target }} -p rustfs --bins
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user