Skip to content

Commit af7b7c5

Browse files
committed
try arm64 build
1 parent c58ea57 commit af7b7c5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/on-release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,41 @@ jobs:
119119
asset_path: dist/heta-compiler-deb.deb
120120
asset_name: heta-compiler-x64.deb
121121
asset_content_type: application/octet-stream
122+
upload-linux-arm64-release-asset:
123+
runs-on: ubuntu-22.04-arm
124+
steps:
125+
- uses: actions/checkout@v4
126+
- uses: actions/setup-node@v4
127+
with:
128+
node-version: 18.x
129+
- run: npm ci
130+
- name: Build standalone apps
131+
run: |
132+
npx pkg . -t linux-arm64 --compress GZip
133+
cd ./dist
134+
chmod 775 heta-compiler
135+
tar -czvf ./heta-compiler-linux-arm64.tar.gz ./heta-compiler
136+
cd ..
137+
- name: Upload Release Asset Linux
138+
uses: actions/upload-release-asset@v1
139+
env:
140+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141+
with:
142+
upload_url: ${{ github.event.release.upload_url }}
143+
asset_path: dist/heta-compiler
144+
asset_name: heta-compiler-linux-arm64
145+
asset_content_type: application/octet-stream
146+
147+
- name: Upload Release TAR.GZ Linux
148+
uses: actions/upload-release-asset@v1
149+
env:
150+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151+
with:
152+
upload_url: ${{ github.event.release.upload_url }}
153+
asset_path: dist/heta-compiler-linux-arm64.tar.gz
154+
asset_name: heta-compiler-linux-arm64.tar.gz
155+
asset_content_type: application/octet-stream
156+
122157
upload-windows-release-asset:
123158
runs-on: windows-latest
124159
steps:

0 commit comments

Comments
 (0)