attempt at dual mac builds (#3798)

This commit is contained in:
Yeastplume 2024-11-05 10:25:24 +00:00 committed by GitHub
parent 01b25650e2
commit 2d60c5178b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,14 +27,14 @@ jobs:
target/release/grin-${{ github.ref_name }}-linux-x86_64.tar.gz target/release/grin-${{ github.ref_name }}-linux-x86_64.tar.gz
target/release/grin-${{ github.ref_name }}-linux-x86_64-sha256sum.txt target/release/grin-${{ github.ref_name }}-linux-x86_64-sha256sum.txt
macos-release: macos-release-x86:
name: macOS Release name: macOS Release - x86_64
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build - name: Build
run: cargo build --release run: cargo build --release --target x86_64-apple-darwin
- name: Archive - name: Archive
working-directory: target/release working-directory: target/release
run: tar -czvf grin-${{ github.ref_name }}-macos-x86_64.tar.gz grin run: tar -czvf grin-${{ github.ref_name }}-macos-x86_64.tar.gz grin
@ -48,6 +48,27 @@ jobs:
target/release/grin-${{ github.ref_name }}-macos-x86_64.tar.gz target/release/grin-${{ github.ref_name }}-macos-x86_64.tar.gz
target/release/grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt target/release/grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
macos-release-arm64:
name: macOS Release - arm64
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: cargo build --release
- name: Archive
working-directory: target/release
run: tar -czvf grin-${{ github.ref_name }}-macos-arm64.tar.gz grin
- name: Create Checksum
working-directory: target/release
run: openssl sha256 grin-${{ github.ref_name }}-macos-arm64.tar.gz > grin-${{ github.ref_name }}-macos-arm64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/grin-${{ github.ref_name }}-macos-arm64.tar.gz
target/release/grin-${{ github.ref_name }}-macos-arm64-sha256sum.txt
windows-release: windows-release:
name: Windows Release name: Windows Release
runs-on: windows-2019 runs-on: windows-2019