Merge pull request #26 from starkSV/feat/linux-arm64-build
feat(ci): add linux-arm64 build target for CLI releases
This commit is contained in:
commit
98f61b1831
1 changed files with 5 additions and 0 deletions
5
.github/workflows/cli-release.yml
vendored
5
.github/workflows/cli-release.yml
vendored
|
|
@ -26,6 +26,7 @@ jobs:
|
|||
VERSION="${VERSION#cli/v}"
|
||||
mkdir -p ../dist
|
||||
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X main.Version=${VERSION}" -o ../dist/msdl-linux-amd64 .
|
||||
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X main.Version=${VERSION}" -o ../dist/msdl-linux-arm64 .
|
||||
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X main.Version=${VERSION}" -o ../dist/msdl-darwin-amd64 .
|
||||
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w -X main.Version=${VERSION}" -o ../dist/msdl-darwin-arm64 .
|
||||
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X main.Version=${VERSION}" -o ../dist/msdl-windows-amd64.exe .
|
||||
|
|
@ -69,6 +70,10 @@ jobs:
|
|||
curl -L https://github.com/starkSV/windows-iso-downloader/releases/download/${{ github.ref_name }}/msdl-linux-amd64 -o msdl
|
||||
chmod +x msdl && sudo mv msdl /usr/local/bin/
|
||||
|
||||
# Linux ARM64 (also works in Termux on Android)
|
||||
curl -L https://github.com/starkSV/windows-iso-downloader/releases/download/${{ github.ref_name }}/msdl-linux-arm64 -o msdl
|
||||
chmod +x msdl && mv msdl $PREFIX/bin/ 2>/dev/null || sudo mv msdl /usr/local/bin/
|
||||
|
||||
# macOS Apple Silicon
|
||||
curl -L https://github.com/starkSV/windows-iso-downloader/releases/download/${{ github.ref_name }}/msdl-darwin-arm64 -o msdl
|
||||
chmod +x msdl && sudo mv msdl /usr/local/bin/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue