Skip to content

Commit

Permalink
chore(github): add macOS release
Browse files Browse the repository at this point in the history
  • Loading branch information
dndx committed Apr 11, 2023
1 parent b22aa66 commit d800cd7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,38 @@ jobs:
with:
files: target/${{ matrix.target }}/release/uip_*
prerelease: ${{ contains(github.ref, '-') }}

build-macos:
runs-on: macos-latest
env:
RUST_BACKTRACE: full
strategy:
matrix:
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
- uses: actions/checkout@v3

- name: Install Rust toolchain
run: |
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable
rustup target add --toolchain stable ${{ matrix.target }}
- name: Build release
run: |
cargo build --release --target ${{ matrix.target }}
- name: Rename artifact
run: |
cd target/${{ matrix.target }}/release
mv uip uip_${{ matrix.target }}
- name: Upload Github Assets
uses: softprops/action-gh-release@v1
with:
files: target/${{ matrix.target }}/release/uip_*
prerelease: ${{ contains(github.ref, '-') }}

0 comments on commit d800cd7

Please sign in to comment.