From 77281e3ab96692f7d27ec151cdf66afb38cf75c0 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 23 Oct 2024 00:37:41 +0300 Subject: [PATCH] github: fix macos arm sdk --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 386dda0..ff31178 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -123,6 +123,10 @@ jobs: working-directory: target/x86_64-apple-darwin/release shell: bash run: sha256sum grim-${{ github.ref_name }}-macos-x86_64.zip > grim-${{ github.ref_name }}-macos-x86_64-sha256sum.txt + - name: Download SDK + run: wget https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.0.sdk.tar.xz + - name: Setup SDK env + run: tar xf ${{ github.workspace }}/MacOSX11.0.sdk.tar.xz && echo "SDKROOT=${{ github.workspace }}/MacOSX11.0.sdk" >> $GITHUB_ENV - name: Setup platform env run: echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV - name: Release ARM @@ -142,6 +146,8 @@ jobs: run: sha256sum grim-${{ github.ref_name }}-macos-arm.zip > grim-${{ github.ref_name }}-macos-arm-sha256sum.txt - name: Setup platform env run: echo "MACOSX_DEPLOYMENT_TARGET=10.15" >> $GITHUB_ENV + - name: Setup SDK env + run: echo "SDKROOT=${{ github.workspace }}/MacOSX10.15.sdk" >> $GITHUB_ENV - name: Release Universal run: | lipo -create -output target/grim target/aarch64-apple-darwin/release/grim target/x86_64-apple-darwin/release/grim