This commit is contained in:
Peter Ammon
2024-07-04 15:35:03 -07:00
parent 580028816c
commit d5a128d342
3 changed files with 73 additions and 16 deletions

24
.github/workflows/mac_codesign.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: macOS build and codesign
on:
workflow_dispatch: # Enables manual trigger from GitHub UI
jobs:
code-signing:
runs-on: macos-latest
environment: macos-codesign
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.70
- name: build
run: |
./build_tools/make_pkg.sh
- name: Execute Code Signing Script
run: ./mac_codesign.sh
env:
MAC_CODESIGN_P12_BASE64: ${{ secrets.MAC_CODESIGN_P12_BASE64 }}
MAC_CODESIGN_PASSWORD: ${{ secrets.MAC_CODESIGN_PASSWORD }}
# macOS runners keep having issues loading Cargo.toml dependencies from git (GitHub) instead
# of crates.io, so give this a try. It's also sometimes significantly faster on all platforms.
CARGO_NET_GIT_FETCH_WITH_CLI: true
FISH_ARTEFACT_PATH: /tmp/fish-built