Skip to content

Commit

Permalink
optimize Apple Silicon publishing workflow
Browse files Browse the repository at this point in the history
- rename to align with other publish workflows
- turn on target-cpu=native as M1 and M2 chips have same instruction set
- remove unneeded musl build prep

[skip ci]
  • Loading branch information
jqnatividad committed Jun 25, 2023
1 parent 35c2e86 commit ca38360
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/macOS-arm64-selfhosted-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Apple Silicon Publish
name: Publish Apple Silicon

on:
push:
Expand Down Expand Up @@ -55,14 +55,9 @@ jobs:
with:
submodules: recursive
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: build prep for x86_64-unknown-linux-musl
if: ${{ matrix.job.musl-prep }}
run: |
sudo apt-get install musl-tools musl-dev
sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
- name: Build qsv
env:
RUSTFLAGS: --emit=asm
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -71,7 +66,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
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -80,7 +75,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
RUSTFLAGS: --emit=asm -C target-cpu=native
uses: actions-rs/cargo@v1
with:
command: build
Expand Down

0 comments on commit ca38360

Please sign in to comment.