Skip to content

Commit

Permalink
Merge pull request #6 from plebhash/release-bin
Browse files Browse the repository at this point in the history
add if for macos
  • Loading branch information
plebhash committed Feb 21, 2024
2 parents 413d2fb + 9a6f9ae commit 372209d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release-bin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, macos-arm64]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -23,13 +23,22 @@ jobs:
- name: Build
run: cargo build --release --locked --manifest-path=roles/pool/Cargo.toml

- name: Upload x86-64 binaries to release
if: matrix.os == 'ubuntu-latest'
- name: Upload Linux x86-64 binaries to release
if: matrix.os == 'macos-latest'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/release/pool_sv2
asset_name: pool_sv2-x86_64-linux-gnu
asset_name: pool_sv2-x86_64-apple-darwin
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-arm64'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/release/pool_sv2
asset_name: pool_sv2-arm64-apple-darwin
tag: ${{ github.ref }}

release_jdc:
Expand Down

0 comments on commit 372209d

Please sign in to comment.