Skip to content

Commit 6c369e2

Browse files
author
Ulises Himely
committed
feat: add release workflow
1 parent e2c240f commit 6c369e2

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on: [release]
2+
3+
name: Build on Release
4+
5+
jobs:
6+
mac_arm:
7+
name: Mac ARM
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions-rs/toolchain@v1
12+
with:
13+
toolchain: stable
14+
target: aarch64-apple-darwin
15+
override: true
16+
- uses: actions-rs/cargo@v1
17+
with:
18+
use-cross: true
19+
command: build
20+
args: --target aarch64-apple-darwin
21+
mac_intel:
22+
name: Mac Intel
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions-rs/toolchain@v1
27+
with:
28+
toolchain: stable
29+
target: x86_64-apple-darwin
30+
override: true
31+
- uses: actions-rs/cargo@v1
32+
with:
33+
use-cross: true
34+
command: build
35+
args: --target x86_64-apple-darwin

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ license = "MIT"
1212
name = "lib"
1313
path = "src/lib.rs"
1414

15+
[[bin]]
16+
name = "site-monitor"
17+
path = "src/main.rs"
18+
1519
[dependencies]
1620
clap = { version = "4.4.4", features = ["derive"] }
1721
log = "0.4.20"

0 commit comments

Comments
 (0)