5
5
types : [created]
6
6
7
7
jobs :
8
- upload-macos-release-asset :
9
- runs-on : ubuntu -latest
8
+ upload-macos-arm64- release-asset :
9
+ runs-on : macos -latest
10
10
steps :
11
11
- uses : actions/checkout@v4
12
12
- uses : actions/setup-node@v4
@@ -15,10 +15,10 @@ jobs:
15
15
- run : npm ci
16
16
- name : Build standalone apps
17
17
run : |
18
- npx pkg . -t macos --compress GZip
18
+ npx pkg . -t macos-arm64 --compress GZip
19
19
cd ./dist
20
20
chmod 775 heta-compiler
21
- tar -czvf ./heta-compiler-macos.tar.gz ./heta-compiler
21
+ tar -czvf ./heta-compiler-macos-arm64 .tar.gz ./heta-compiler
22
22
cd ..
23
23
24
24
- name : Upload Release Asset Macos
28
28
with :
29
29
upload_url : ${{ github.event.release.upload_url }}
30
30
asset_path : dist/heta-compiler
31
- asset_name : heta-compiler-macos-x64
31
+ asset_name : heta-compiler-macos-arm64
32
32
asset_content_type : application/octet-stream
33
33
34
34
- name : Upload Release TAR.GZ Macos
37
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
38
with :
39
39
upload_url : ${{ github.event.release.upload_url }}
40
- asset_path : dist/heta-compiler-macos.tar.gz
41
- asset_name : heta-compiler-macos.tar.gz
40
+ asset_path : dist/heta-compiler-macos-arm64 .tar.gz
41
+ asset_name : heta-compiler-macos-arm64 .tar.gz
42
42
asset_content_type : application/octet-stream
43
43
44
44
- name : Configure SSH
@@ -60,11 +60,48 @@ jobs:
60
60
mkdir -p Formula
61
61
cp -f ../build-homebrew/heta-compiler.template.rb Formula/heta-compiler.rb # copy the new formula and replace the old one
62
62
sed -i "s|\$VERSION|${{ github.event.release.tag_name }}|" Formula/heta-compiler.rb
63
- SHA=$(sha256sum ../dist/heta-compiler-macos.tar.gz | awk '{print $1}')
63
+ SHA=$(sha256sum ../dist/heta-compiler-macos-arm64 .tar.gz | awk '{print $1}')
64
64
sed -i "s|\$SHA256|$SHA|" Formula/heta-compiler.rb
65
65
git add .
66
66
git commit -m "Automated update from source repository based on release ${{ github.event.release.tag_name }}"
67
67
git push origin master
68
+
69
+ upload-macos-release-asset :
70
+ runs-on : macos-14
71
+ steps :
72
+ - uses : actions/checkout@v4
73
+ - uses : actions/setup-node@v4
74
+ with :
75
+ node-version : 18.x
76
+ - run : npm ci
77
+ - name : Build standalone apps
78
+ run : |
79
+ npx pkg . -t macos-x64 --compress GZip
80
+ cd ./dist
81
+ chmod 775 heta-compiler
82
+ tar -czvf ./heta-compiler-macos.tar.gz ./heta-compiler
83
+ cd ..
84
+
85
+ - name : Upload Release Asset Macos
86
+ uses : actions/upload-release-asset@v1
87
+ env :
88
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
89
+ with :
90
+ upload_url : ${{ github.event.release.upload_url }}
91
+ asset_path : dist/heta-compiler
92
+ asset_name : heta-compiler-macos-x64
93
+ asset_content_type : application/octet-stream
94
+
95
+ - name : Upload Release TAR.GZ Macos
96
+ uses : actions/upload-release-asset@v1
97
+ env :
98
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
99
+ with :
100
+ upload_url : ${{ github.event.release.upload_url }}
101
+ asset_path : dist/heta-compiler-macos.tar.gz
102
+ asset_name : heta-compiler-macos.tar.gz
103
+ asset_content_type : application/octet-stream
104
+
68
105
upload-linux-release-asset :
69
106
runs-on : ubuntu-latest
70
107
steps :
@@ -119,6 +156,7 @@ jobs:
119
156
asset_path : dist/heta-compiler-deb.deb
120
157
asset_name : heta-compiler-x64.deb
121
158
asset_content_type : application/octet-stream
159
+
122
160
upload-linux-arm64-release-asset :
123
161
runs-on : ubuntu-22.04-arm
124
162
steps :
0 commit comments