build(release): publish Linux ARM64 binary
- commit
- 879a3f08e69d3db4ce3d153840fd15f78cb6387c
- author
- brice · · 2026-07-18 14:58 UTC
- parent
- 29077b4
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
2 files · +12 -4
M .github/workflows/ci.yml +10 -0
| @@ -36,6 +36,16 @@ jobs: | |||
| 36 | 36 | run: make lint | |
| 37 | 37 | - name: Test | |
| 38 | 38 | run: make test | |
| 39 | + | - name: Test installer | |
| 40 | + | if: matrix.os == 'ubuntu-latest' | |
| 41 | + | run: make test-installer | |
| 42 | + | - name: Cross-compile linux/arm64 | |
| 43 | + | if: matrix.os == 'ubuntu-latest' | |
| 44 | + | env: | |
| 45 | + | CGO_ENABLED: 0 | |
| 46 | + | GOARCH: arm64 | |
| 47 | + | GOOS: linux | |
| 48 | + | run: go build ./... | |
| 39 | 49 | - name: Cross-compile darwin/arm64 | |
| 40 | 50 | if: matrix.os == 'ubuntu-latest' | |
| 41 | 51 | env: | |
| @@ -36,6 +36,16 @@ jobs: | |||||
| 36 | run: make lint | 36 | run: make lint | ||
| 37 | - name: Test | 37 | - name: Test | ||
| 38 | run: make test | 38 | run: make test | ||
| 39 | + | - name: Test installer | |||
| 40 | + | if: matrix.os == 'ubuntu-latest' | |||
| 41 | + | run: make test-installer | |||
| 42 | + | - name: Cross-compile linux/arm64 | |||
| 43 | + | if: matrix.os == 'ubuntu-latest' | |||
| 44 | + | env: | |||
| 45 | + | CGO_ENABLED: 0 | |||
| 46 | + | GOARCH: arm64 | |||
| 47 | + | GOOS: linux | |||
| 48 | + | run: go build ./... | |||
| 39 | - name: Cross-compile darwin/arm64 | 49 | - name: Cross-compile darwin/arm64 | ||
| 40 | if: matrix.os == 'ubuntu-latest' | 50 | if: matrix.os == 'ubuntu-latest' | ||
| 41 | env: | 51 | env: | ||
M .goreleaser.yaml +2 -4
| @@ -19,8 +19,6 @@ builds: | |||
| 19 | 19 | - amd64 | |
| 20 | 20 | - arm64 | |
| 21 | 21 | ignore: | |
| 22 | - | - goos: linux | |
| 23 | - | goarch: arm64 | |
| 24 | 22 | - goos: darwin | |
| 25 | 23 | goarch: amd64 | |
| 26 | 24 | ldflags: | |
| @@ -32,7 +30,7 @@ builds: | |||
| 32 | 30 | archives: | |
| 33 | 31 | - id: default | |
| 34 | 32 | # Contract consumed by install.sh and the AUR package block: | |
| 35 | - | # vev_linux_x86_64.tar.gz / vev_darwin_arm64.tar.gz | |
| 33 | + | # vev_linux_x86_64.tar.gz / vev_linux_arm64.tar.gz / vev_darwin_arm64.tar.gz | |
| 36 | 34 | name_template: >- | |
| 37 | 35 | {{ .ProjectName }}_{{ .Os }}_{{ if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }} | |
| 38 | 36 | formats: ['tar.gz'] | |
| @@ -89,7 +87,7 @@ release: | |||
| 89 | 87 | ||
| 90 | 88 | ## Install | |
| 91 | 89 | ||
| 92 | - | ### Script (Linux x86_64, macOS arm64) | |
| 90 | + | ### Script (Linux x86_64/arm64, macOS arm64) | |
| 93 | 91 | ```sh | |
| 94 | 92 | curl -fsSL https://raw.githubusercontent.com/bnema/vev/{{ .Tag }}/install.sh | VEV_VERSION={{ .Tag }} sh | |
| 95 | 93 | ``` | |
| @@ -19,8 +19,6 @@ builds: | |||||
| 19 | - amd64 | 19 | - amd64 | ||
| 20 | - arm64 | 20 | - arm64 | ||
| 21 | ignore: | 21 | ignore: | ||
| 22 | - | - goos: linux | |||
| 23 | - | goarch: arm64 | |||
| 24 | - goos: darwin | 22 | - goos: darwin | ||
| 25 | goarch: amd64 | 23 | goarch: amd64 | ||
| 26 | ldflags: | 24 | ldflags: | ||
| @@ -32,7 +30,7 @@ builds: | |||||
| 32 | archives: | 30 | archives: | ||
| 33 | - id: default | 31 | - id: default | ||
| 34 | # Contract consumed by install.sh and the AUR package block: | 32 | # Contract consumed by install.sh and the AUR package block: | ||
| 35 | - | # vev_linux_x86_64.tar.gz / vev_darwin_arm64.tar.gz | 33 | + | # vev_linux_x86_64.tar.gz / vev_linux_arm64.tar.gz / vev_darwin_arm64.tar.gz |
| 36 | name_template: >- | 34 | name_template: >- | ||
| 37 | {{ .ProjectName }}_{{ .Os }}_{{ if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }} | 35 | {{ .ProjectName }}_{{ .Os }}_{{ if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }} | ||
| 38 | formats: ['tar.gz'] | 36 | formats: ['tar.gz'] | ||
| @@ -89,7 +87,7 @@ release: | |||||
| 89 | 87 | ||||
| 90 | ## Install | 88 | ## Install | ||
| 91 | 89 | ||||
| 92 | - | ### Script (Linux x86_64, macOS arm64) | 90 | + | ### Script (Linux x86_64/arm64, macOS arm64) |
| 93 | ```sh | 91 | ```sh | ||
| 94 | curl -fsSL https://raw.githubusercontent.com/bnema/vev/{{ .Tag }}/install.sh | VEV_VERSION={{ .Tag }} sh | 92 | curl -fsSL https://raw.githubusercontent.com/bnema/vev/{{ .Tag }}/install.sh | VEV_VERSION={{ .Tag }} sh | ||
| 95 | ``` | 93 | ``` | ||