5
5
types : [published]
6
6
7
7
jobs :
8
- release-linux :
8
+ release-linux-amd64 :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- name : Checkout sources
@@ -32,12 +32,12 @@ jobs:
32
32
- name : Upload binary to release
33
33
run : |
34
34
TAG_NAME=${GITHUB_REF#refs/tags/}
35
- cp target/release/protofetch protofetch-linux
36
- gh release upload $TAG_NAME protofetch-linux
35
+ cp target/release/protofetch protofetch_linux_amd64
36
+ gh release upload $TAG_NAME protofetch_linux_amd64
37
37
env :
38
38
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
39
39
40
- release-mac :
40
+ release-mac-amd64 :
41
41
runs-on : macos-latest
42
42
steps :
43
43
- name : Checkout sources
57
57
- name : Upload binary to release
58
58
run : |
59
59
TAG_NAME=${GITHUB_REF#refs/tags/}
60
- cp target/release/protofetch protofetch-macos
61
- gh release upload $TAG_NAME protofetch-macos
60
+ cp target/release/protofetch protofetch_darwin_arm64
61
+ gh release upload $TAG_NAME protofetch_darwin_arm64
62
62
env :
63
63
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
64
+
65
+ release-mac-arm64 :
66
+ runs-on : macos-latest
67
+ steps :
68
+ - name : Checkout sources
69
+ uses : actions/checkout@v2
70
+
71
+ - name : Install stable toolchain
72
+ uses : actions-rs/toolchain@v1
73
+ with :
74
+ profile : minimal
75
+ toolchain : stable
76
+ override : true
77
+ target : aarch64-apple-darwin
78
+
79
+ - name : Build for release
80
+ run : cargo build --release
81
+
82
+ - name : Upload binary to release
83
+ run : |
84
+ TAG_NAME=${GITHUB_REF#refs/tags/}
85
+ cp target/release/protofetch protofetch_darwin_amd64
86
+ gh release upload $TAG_NAME protofetch_darwin_amd64
87
+ env :
88
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
89
+
0 commit comments