Skip to content

Commit

Permalink
attempt at dual mac builds (#3798)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume authored Nov 5, 2024
1 parent 01b2565 commit 2d60c51
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-sha256sum.txt
macos-release:
name: macOS Release
macos-release-x86:
name: macOS Release - x86_64
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: cargo build --release
run: cargo build --release --target x86_64-apple-darwin
- name: Archive
working-directory: target/release
run: tar -czvf grin-${{ github.ref_name }}-macos-x86_64.tar.gz grin
Expand All @@ -47,7 +47,28 @@ jobs:
files: |
target/release/grin-${{ github.ref_name }}-macos-x86_64.tar.gz
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:
name: Windows Release
runs-on: windows-2019
Expand Down

0 comments on commit 2d60c51

Please sign in to comment.