From da4cf71fac0e08e02b59006e0993100deede43d5 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Tue, 22 Oct 2024 03:19:34 +0300 Subject: [PATCH] github: build macos on linux with SDK 10.15 --- .github/workflows/release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22b0b9f..2041514 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,20 +94,18 @@ jobs: macos_release: name: MacOS Release - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Zig Setup - uses: goto-bus-stop/setup-zig@v2 - with: - version: 0.12.1 - - name: Install coreutils - run: brew install coreutils - name: Install cargo-zigbuild run: cargo install cargo-zigbuild + - name: Download SDK + run: wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.15.sdk.tar.xz && tar -xzf MacOSX10.15.sdk.tar.xz + - name: Setup SDK env + run: echo "SDK_PATH=${{ github.workspace }}/MacOSX10.15.sdk" >> $GITHUB_ENV - name: Release x86 run: | rustup target add x86_64-apple-darwin