From 4e6dff52fe6a25f510761c614285a3526d245be3 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Tue, 22 Oct 2024 04:14:21 +0300 Subject: [PATCH] github: macos install zig --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e34907e..acb0a5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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