mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
* fix: Resolve zstd-sys Zig compilation issues - Remove specific Zig version constraint in action.yml to use default version - Clean up duplicate environment variable settings in build-rustfs.sh - Add CARGO_TARGET_*_LINKER environment variables for better cross-compilation support - Optimize build configuration for consistent cross-platform compilation Fixes compilation issues with zstd-sys when using Zig cross-compilation. Aligns with previously working configuration that uses default Zig version. * fix: Restore working build configuration from4fb4b353- Restore matrix.cross parameter to differentiate cross-compilation - Use simple cargo zigbuild instead of complex build-rustfs.sh script - Remove unnecessary zstd dependencies from action.yml - Restore console asset download step - Use correct target directory path for packaging - Align with known working configuration from commit4fb4b353This reverts to the proven working build approach that successfully performed cross-platform compilation. * fix: Align build-rustfs.sh with working version logic - Simplify build logic to match working version4fb4b353- Use exact same build commands as the working build.yml: * cargo build for native compilation * cargo zigbuild for Linux ARM64 cross-compilation * cross build for Windows ARM64 cross-compilation - Remove complex environment variable setup that caused conflicts - Add touch rustfs/build.rs to match working version - Use -p rustfs --bins flag consistent with working version This ensures build-rustfs.sh (if used) follows the proven working approach.
This commit is contained in:
6
.github/actions/setup/action.yml
vendored
6
.github/actions/setup/action.yml
vendored
@@ -58,9 +58,7 @@ runs:
|
||||
libwebkit2gtk-4.1-dev \
|
||||
libxdo-dev \
|
||||
pkg-config \
|
||||
libssl-dev \
|
||||
libzstd-dev \
|
||||
zstd
|
||||
libssl-dev
|
||||
|
||||
- name: Install protoc
|
||||
uses: arduino/setup-protoc@v3
|
||||
@@ -83,8 +81,6 @@ runs:
|
||||
- name: Install Zig
|
||||
if: inputs.install-cross-tools == 'true'
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: 0.13.0
|
||||
|
||||
- name: Install cargo-zigbuild
|
||||
if: inputs.install-cross-tools == 'true'
|
||||
|
||||
Reference in New Issue
Block a user