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