Skip to content

Commit bae88b4

Browse files
committed
fix macOs bin fetching depending on arch
1 parent b77c2c1 commit bae88b4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ jobs:
9191
else
9292
task setup-node-folder
9393
fi
94+
env:
95+
OS: ${{ matrix.target }}
96+
ARCH: ${{ matrix.arch }}
9497

9598
- name: Download plugin binary artifacts
9699
uses: actions/download-artifact@v4

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ tasks:
7272
platforms: [windows]
7373

7474
vars:
75-
OS_NAME: '{{if eq OS "darwin"}}macos{{else}}{{OS}}{{end}}'
75+
OS_NAME: '{{if eq OS "darwin"}}{{if or (eq .ARCH "arm64") (eq ARCH "arm64")}}macos_aarch64{{else}}macos{{end}}{{else}}{{OS}}{{end}}'
7676
ARCHIVE_EXT: '{{if eq OS "windows"}}zip{{else}}tar.gz{{end}}'
7777
MAINNET_NODEBIN: "massa_{{.MAINNET_VERSION}}_release_{{.OS_NAME}}.{{.ARCHIVE_EXT}}"
7878
BUILDNET_NODEBIN: "massa_{{.BUILDNET_VERSION}}_release_{{.OS_NAME}}.{{.ARCHIVE_EXT}}"

0 commit comments

Comments
 (0)