Skip to content

Commit 53a14d6

Browse files
authored
feat: enable darwin/arm64 (M1) during release (#1810)
1 parent 024a198 commit 53a14d6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/scaleway/scaleway-cli
22

3-
go 1.12
3+
go 1.16
44

55
require (
66
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38

scripts/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ VERSION=$(go run cmd/scw/main.go -o json version | jq -r .version)
2222
BIN_LINUX="$BIN_DIR/scw-$VERSION-linux-x86_64"
2323
BIN_LINUX_386="$BIN_DIR/scw-$VERSION-linux-386"
2424
BIN_DARWIN="$BIN_DIR/scw-$VERSION-darwin-x86_64"
25+
BIN_DARWIN_ARM64="$BIN_DIR/scw-$VERSION-darwin-arm64"
2526
BIN_WINDOWS="$BIN_DIR/scw-$VERSION-windows-x86_64.exe"
2627
BIN_WINDOWS_386="$BIN_DIR/scw-$VERSION-windows-386.exe"
2728

@@ -31,11 +32,13 @@ GOOS=linux GOARCH=386 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_LINUX_386" cmd
3132
GOOS=darwin GOARCH=amd64 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_DARWIN" cmd/scw/main.go
3233
GOOS=windows GOARCH=amd64 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_WINDOWS" cmd/scw/main.go
3334
GOOS=windows GOARCH=386 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_WINDOWS_386" cmd/scw/main.go
35+
GOOS=darwin GOARCH=arm64 go build -ldflags "${LDFLAGS[*]}" -o "$BIN_DARWIN_ARM64" cmd/scw/main.go
3436

3537
shasum -a 256 \
3638
"$BIN_LINUX" \
3739
"$BIN_LINUX_386" \
3840
"$BIN_DARWIN" \
41+
"$BIN_DARWIN_ARM64" \
3942
"$BIN_WINDOWS" \
4043
"$BIN_WINDOWS_386" \
4144
| sed -e 's#./bin/##' > "$BIN_DIR/SHA256SUMS"

scripts/release/release.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ async function main() {
215215
console.log(" attach assets to the release".gray);
216216
const releaseAssets = [
217217
`scw-${newVersion}-darwin-x86_64`,
218+
`scw-${newVersion}-darwin-arm64`,
218219
`scw-${newVersion}-linux-x86_64`,
219220
`scw-${newVersion}-linux-386`,
220221
`scw-${newVersion}-windows-x86_64.exe`,

0 commit comments

Comments
 (0)