github: macos install zig

This commit is contained in:
ardocrat 2024-10-22 04:14:21 +03:00
parent 92d0aac250
commit 4e6dff52fe

View file

@ -100,12 +100,16 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install cargo-zigbuild
run: cargo install cargo-zigbuild
- name: Setup zig
uses: korandoru/setup-zig@v1
with:
zig-version: 0.12.1
- name: Download SDK
run: wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.15.sdk.tar.xz
- name: Setup SDK env
run: tar xf ${{ github.workspace }}/MacOSX10.15.sdk.tar.xz && echo "SDK_PATH=${{ github.workspace }}/MacOSX10.15.sdk" >> $GITHUB_ENV
- name: Install cargo-zigbuild
run: cargo install cargo-zigbuild
- name: Release x86
run: |
rustup target add x86_64-apple-darwin