Skip to content

Commit ee27a9e

Browse files
author
Ulises Himely
committed
feat: add mac intel binary
1 parent 92c228d commit ee27a9e

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
name: Build on Release
66

77
jobs:
8-
build:
9-
name: Mac ARM
8+
build_mac_arm:
9+
name: Build | Mac ARM
1010
runs-on: macos-latest
1111
steps:
1212
- run: rustup target add aarch64-apple-darwin
@@ -18,7 +18,27 @@ jobs:
1818
with:
1919
command: build
2020
args: --release --target aarch64-apple-darwin
21+
- run: mv target/aarch64-apple-darwin/release/site-monitor target/aarch64-apple-darwin/release/aarch64-apple-darwin-site-monitor
2122
- uses: softprops/action-gh-release@v1
2223
if: startsWith(github.ref, 'refs/tags/')
2324
with:
24-
files: target/aarch64-apple-darwin/release/site-monitor
25+
files: target/aarch64-apple-darwin/release/aarch64-apple-darwin-site-monitor
26+
build_mac_intel:
27+
name: Mac Intel
28+
runs-on: ubuntu-latest
29+
steps:
30+
- run: rustup target add x86_64-apple-darwin
31+
- uses: actions/checkout@v2
32+
- uses: actions-rs/toolchain@v1
33+
with:
34+
toolchain: stable
35+
target: x86_64-apple-darwin
36+
- uses: actions-rs/cargo@v1
37+
with:
38+
command: build
39+
args: --release --target x86_64-apple-darwin
40+
- run: mv target/x86_64-apple-darwin/release/site-monitor target/x86_64-apple-darwin/release/x86_64-apple-darwin-site-monitor
41+
- uses: softprops/action-gh-release@v1
42+
if: startsWith(github.ref, 'refs/tags/')
43+
with:
44+
files: target/x86_64-apple-darwin/release/x86_64-apple-darwin-site-monitor

0 commit comments

Comments
 (0)