Skip to content

Commit

Permalink
Add macos binaries to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ebmifa committed Aug 10, 2023
1 parent 41b49c4 commit ff2025e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
timeout-minutes: 45
strategy:
matrix:
os: [windows-ghcloud, ubuntu-ghcloud]
os: [macos-latest-xl]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -81,12 +81,13 @@ jobs:
run: |
cargo build --release
- name: Rename binaries for Ubuntu
if: ${{ env.sui_tag != 'main' && matrix.os == 'ubuntu-ghcloud' }}
- name: Rename binaries for Ubuntu and MacOS
if: ${{ env.sui_tag != 'main' && (matrix.os == 'ubuntu-ghcloud' || matrix.os == 'macos-latest-xl') }}
shell: bash
run: |
export arch=$(uname -m)
export os_type="ubuntu-${arch}"
export system_os=$(echo "ubuntu-ghcloud" | cut -d- -f1)
export os_type="$(system_os)-${arch}"
echo "os_type=${os_type}" >> $GITHUB_ENV
mv ./target/release/sui ./target/release/sui-${os_type}
mv ./target/release/sui-node ./target/release/sui-node-${os_type}
Expand Down

0 comments on commit ff2025e

Please sign in to comment.