From ca3836016e95909ae97e1b9270267c2b040990e8 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sun, 25 Jun 2023 07:25:46 -0400 Subject: [PATCH] optimize Apple Silicon publishing workflow - 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] --- .../workflows/macOS-arm64-selfhosted-publish.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/macOS-arm64-selfhosted-publish.yml b/.github/workflows/macOS-arm64-selfhosted-publish.yml index 898075b2b..e1459e615 100644 --- a/.github/workflows/macOS-arm64-selfhosted-publish.yml +++ b/.github/workflows/macOS-arm64-selfhosted-publish.yml @@ -1,4 +1,4 @@ -name: Apple Silicon Publish +name: Publish Apple Silicon on: push: @@ -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 @@ -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 @@ -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