Skip to content

Commit d36abfa

Browse files
supported arm64
Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
1 parent 7006161 commit d36abfa

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,18 @@ jobs:
5656
run: yarn test --silent
5757
- name: Package
5858
run: |
59-
vsce package -o vscode-yaml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
60-
sha256sum *.vsix > vscode-yaml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix.sha256
59+
declare -A targets
60+
targets["win32-x64"]=win32
61+
targets["win32-arm64"]=win32
62+
targets["linux-x64"]=linux
63+
targets["linux-arm64"]=linux-arm64
64+
targets["darwin-x64"]=darwin
65+
targets["darwin-arm64"]=darwin
66+
for target in ${!targets[@]}; do
67+
export TARGET=${targets[${target}]}
68+
vsce package --target ${target} -o vscode-yaml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}-${target}.vsix
69+
sha256sum *-${target}.vsix > vscode-yaml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}-${target}.vsix.sha256
70+
done
6171
ls -lash *.vsix *.sha256
6272
- name: Upload VSIX Artifacts
6373
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)