github: fix macos deployment target

This commit is contained in:
ardocrat 2024-10-23 00:11:45 +03:00
parent 9494c1292e
commit 64439ad3d3

View file

@ -123,6 +123,8 @@ jobs:
working-directory: target/x86_64-apple-darwin/release working-directory: target/x86_64-apple-darwin/release
shell: bash shell: bash
run: sha256sum grim-${{ github.ref_name }}-macos-x86_64.zip > grim-${{ github.ref_name }}-macos-x86_64-sha256sum.txt run: sha256sum grim-${{ github.ref_name }}-macos-x86_64.zip > grim-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
- name: Setup platform env
run: echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV
- name: Release ARM - name: Release ARM
run: | run: |
rustup target add aarch64-apple-darwin rustup target add aarch64-apple-darwin
@ -138,6 +140,8 @@ jobs:
working-directory: target/aarch64-apple-darwin/release working-directory: target/aarch64-apple-darwin/release
shell: bash shell: bash
run: sha256sum grim-${{ github.ref_name }}-macos-arm.zip > grim-${{ github.ref_name }}-macos-arm-sha256sum.txt 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: Release Universal - name: Release Universal
run: | run: |
lipo -create -output target/grim target/aarch64-apple-darwin/release/grim target/x86_64-apple-darwin/release/grim lipo -create -output target/grim target/aarch64-apple-darwin/release/grim target/x86_64-apple-darwin/release/grim