Skip to content

Commit d800cd7

Browse files
committed
chore(github): add macOS release
1 parent b22aa66 commit d800cd7

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

+35
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,38 @@ jobs:
5656
with:
5757
files: target/${{ matrix.target }}/release/uip_*
5858
prerelease: ${{ contains(github.ref, '-') }}
59+
60+
build-macos:
61+
runs-on: macos-latest
62+
env:
63+
RUST_BACKTRACE: full
64+
strategy:
65+
matrix:
66+
target:
67+
- x86_64-apple-darwin
68+
- aarch64-apple-darwin
69+
steps:
70+
- uses: actions/checkout@v3
71+
72+
- name: Install Rust toolchain
73+
run: |
74+
rustup set profile minimal
75+
rustup toolchain install stable
76+
rustup default stable
77+
rustup override set stable
78+
rustup target add --toolchain stable ${{ matrix.target }}
79+
80+
- name: Build release
81+
run: |
82+
cargo build --release --target ${{ matrix.target }}
83+
84+
- name: Rename artifact
85+
run: |
86+
cd target/${{ matrix.target }}/release
87+
mv uip uip_${{ matrix.target }}
88+
89+
- name: Upload Github Assets
90+
uses: softprops/action-gh-release@v1
91+
with:
92+
files: target/${{ matrix.target }}/release/uip_*
93+
prerelease: ${{ contains(github.ref, '-') }}

0 commit comments

Comments
 (0)