Skip to content

Commit

Permalink
publish: these CPU flags do not apply on Apple Silicon, just stick …
Browse files Browse the repository at this point in the history
…with `target-cpu=native`

[skip ci]
  • Loading branch information
jqnatividad committed Aug 9, 2024
1 parent c26cd0b commit 7ee18bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/macOS-arm64-selfhosted-publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
default-features: --no-default-features
addl-qsvlite-features:
addl-qsvdp-features: luau
cpu-features: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma,+pclmulqdq

steps:
- name: Installing Rust toolchain
Expand All @@ -58,7 +57,7 @@ jobs:
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Build qsv
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.cpu-features }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -67,7 +66,7 @@ jobs:
args: --profile release-nightly --locked --bin qsv -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target ${{ matrix.job.target }} ${{ matrix.job.addl-build-args }},feature_capable,nightly ${{ matrix.job.default-features }}
- name: Build qsvlite
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.cpu-features }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -76,7 +75,7 @@ jobs:
args: --profile release-nightly --locked --bin qsvlite -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --features=lite,self_update,nightly,${{ matrix.job.addl-qsvlite-features }} --target ${{ matrix.job.target }} ${{ matrix.job.default-features }}
- name: Build qsvdp
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.cpu-features }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/macOS-arm64-selfhosted-publish-qsvpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
default-features:
addl-qsvlite-features:
addl-qsvdp-features: luau
addl-rustflags: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma,+pclmulqdq

steps:
- name: Installing Rust toolchain
Expand All @@ -62,7 +61,7 @@ jobs:
python-version: '3.10'
- name: Build qsvpy310
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.addl-rustflags }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -84,7 +83,7 @@ jobs:
python-version: '3.11'
- name: Build qsvpy311
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.addl-rustflags }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -105,7 +104,7 @@ jobs:
python-version: '3.12'
- name: Build qsvpy312
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.addl-rustflags }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/macOS-arm64-selfhosted-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
default-features:
addl-qsvlite-features:
addl-qsvdp-features: luau
cpu-features: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma,+pclmulqdq

steps:
- name: Installing Rust toolchain
Expand All @@ -59,7 +58,7 @@ jobs:
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Build qsv
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.cpu-features }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -68,7 +67,7 @@ jobs:
args: --release --locked --bin qsv --target ${{ matrix.job.target }} ${{ matrix.job.addl-build-args }},feature_capable ${{ matrix.job.default-features }}
- name: Build qsvlite
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.cpu-features }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -77,7 +76,7 @@ jobs:
args: --release --locked --bin qsvlite --features=lite,self_update,${{ matrix.job.addl-qsvlite-features }} --target ${{ matrix.job.target }} ${{ matrix.job.default-features }}
- name: Build qsvdp
env:
RUSTFLAGS: --emit=asm -C target-cpu=native ${{ matrix.job.cpu-features }}
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand Down

0 comments on commit 7ee18bb

Please sign in to comment.