Skip to content

Commit

Permalink
publish: republish intel macos prebuilts
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Dec 4, 2023
1 parent 216c5c4 commit 9b015ff
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/macOS-x86_64-selfhosted-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
publish:
name: Publish for ${{ matrix.job.target }}
needs: analyze-tags
runs-on: self-hosted
runs-on: macos-latest
strategy:
matrix:
rust: [stable]
Expand All @@ -36,11 +36,12 @@ jobs:
os-name: macos
target: x86_64-apple-darwin
architecture: x86_64
use-cross: true
use-cross: false
addl-build-args: --features=apply,generate,fetch,foreach,self_update,luau,polars,to,geocode
default-features: --no-default-features
addl-qsvlite-features:
addl-qsvdp-features: luau
addl-rustflags: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma

steps:
- name: Installing Rust toolchain
Expand All @@ -57,7 +58,7 @@ jobs:
ref: ${{ needs.analyze-tags.outputs.previous-tag }}
- name: Build qsv
env:
RUSTFLAGS: --emit=asm
RUSTFLAGS: --emit=asm ${{ matrix.job.addl-rustflags }}
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -66,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
RUSTFLAGS: --emit=asm ${{ matrix.job.addl-rustflags }}
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -75,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
RUSTFLAGS: --emit=asm ${{ matrix.job.addl-rustflags }}
uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -94,6 +95,19 @@ jobs:
cat docs/publishing_assets/README.txt docs/publishing_assets/qsv-${{ matrix.job.target }}.txt > qsv-${{ needs.analyze-tags.outputs.previous-tag }}/README
- name: zip up binaries
run: 7zz a -tzip qsv-${{ needs.analyze-tags.outputs.previous-tag }}-${{ matrix.job.target }}.zip ./qsv-${{ needs.analyze-tags.outputs.previous-tag }}/* -mx=9 -mmt=on
- name: install zipsign
run: |
cargo install zipsign
- name: Fetch zipsign private key
uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.QSV_ZIPSIGN_PRIV_KEY }}
filename: "qsvpriv.key"
is-executable: false
working-directory: "."
- name: zipsign binary
run: |
zipsign sign zip qsv-${{ needs.analyze-tags.outputs.previous-tag }}-${{ matrix.job.target }}.zip qsvpriv.key
- name: Upload zipped binaries to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 9b015ff

Please sign in to comment.