-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.43 KB
/
release.yml
File metadata and controls
43 lines (41 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on:
release:
types: [published]
name: Build on Release
jobs:
build_mac_arm:
name: Build | Mac ARM
runs-on: macos-latest
steps:
- run: rustup target add aarch64-apple-darwin
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target aarch64-apple-darwin
- run: mv target/aarch64-apple-darwin/release/site-monitor target/aarch64-apple-darwin/release/aarch64-apple-darwin-site-monitor
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/aarch64-apple-darwin/release/aarch64-apple-darwin-site-monitor
build_mac_intel:
name: Mac Intel
runs-on: macos-latest
steps:
- run: rustup target add x86_64-apple-darwin
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target x86_64-apple-darwin
- run: mv target/x86_64-apple-darwin/release/site-monitor target/x86_64-apple-darwin/release/x86_64-apple-darwin-site-monitor
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/x86_64-apple-darwin/release/x86_64-apple-darwin-site-monitor