chore(ci): restore workflows before 8e0aeb4 (#1212)

This commit is contained in:
loverustfs
2025-12-20 07:50:49 +08:00
committed by GitHub
parent 8dd3e8b534
commit 1e35edf079
4 changed files with 55 additions and 194 deletions
+8 -17
View File
@@ -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