mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-17 10:17:55 +00:00
Fix/x86 64 compat drop target cpu native (#1895)
This commit is contained in:
@@ -161,42 +161,52 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: ${{ matrix.cross == 'false' && '-C target-cpu=native' || '' }}
|
RUSTFLAGS: ${{ matrix.rustflags }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Linux builds
|
# Linux builds
|
||||||
|
# Use x86-64-v2 (SSE4.2 baseline) instead of native to ensure distributed
|
||||||
|
# binaries run on older x86_64 CPUs (e.g. Intel Celeron/Atom, Synology NAS).
|
||||||
|
# See: https://github.com/rustfs/rustfs/issues/1838
|
||||||
- os: ubicloud-standard-2
|
- os: ubicloud-standard-2
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
cross: false
|
cross: false
|
||||||
platform: linux
|
platform: linux
|
||||||
|
rustflags: '-C target-cpu=x86-64-v2'
|
||||||
- os: ubicloud-standard-2
|
- os: ubicloud-standard-2
|
||||||
target: aarch64-unknown-linux-musl
|
target: aarch64-unknown-linux-musl
|
||||||
cross: true
|
cross: true
|
||||||
platform: linux
|
platform: linux
|
||||||
|
rustflags: ''
|
||||||
- os: ubicloud-standard-2
|
- os: ubicloud-standard-2
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
cross: false
|
cross: false
|
||||||
platform: linux
|
platform: linux
|
||||||
|
rustflags: '-C target-cpu=x86-64-v2'
|
||||||
- os: ubicloud-standard-2
|
- os: ubicloud-standard-2
|
||||||
target: aarch64-unknown-linux-gnu
|
target: aarch64-unknown-linux-gnu
|
||||||
cross: true
|
cross: true
|
||||||
platform: linux
|
platform: linux
|
||||||
|
rustflags: ''
|
||||||
# macOS builds
|
# macOS builds
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
cross: false
|
cross: false
|
||||||
platform: macos
|
platform: macos
|
||||||
|
rustflags: ''
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
cross: false
|
cross: false
|
||||||
platform: macos
|
platform: macos
|
||||||
|
rustflags: '-C target-cpu=x86-64-v2'
|
||||||
# Windows builds (temporarily disabled)
|
# Windows builds (temporarily disabled)
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
cross: false
|
cross: false
|
||||||
platform: windows
|
platform: windows
|
||||||
|
rustflags: '-C target-cpu=x86-64-v2'
|
||||||
#- os: windows-latest
|
#- os: windows-latest
|
||||||
# target: aarch64-pc-windows-msvc
|
# target: aarch64-pc-windows-msvc
|
||||||
# cross: true
|
# cross: true
|
||||||
|
|||||||
Reference in New Issue
Block a user