Skip to content

Commit d9fa842

Browse files
author
Ulises Himely
committed
chore: keep brute forcing this thing
1 parent 32136b5 commit d9fa842

1 file changed

Lines changed: 10 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,24 @@
1-
on: [release]
1+
on:
2+
release:
3+
types: [published]
24

35
name: Build on Release
46

57
jobs:
6-
mac_arm:
8+
build:
79
name: Mac ARM
8-
runs-on: ubuntu-latest
10+
runs-on: macos-latest
911
steps:
12+
- run: rustup target add aarch64-apple-darwin
1013
- uses: actions/checkout@v2
1114
- uses: actions-rs/toolchain@v1
1215
with:
1316
toolchain: stable
14-
target: aarch64-apple-darwin
15-
override: true
1617
- uses: actions-rs/cargo@v1
1718
with:
18-
use-cross: true
1919
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
20+
args: --release --target aarch64-apple-darwin
21+
- uses: softprops/action-gh-release@v1
22+
if: startsWith(github.ref, 'refs/tags/')
2723
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
24+
files: target/aarch64-apple-darwin

0 commit comments

Comments
 (0)