Skip to content

Commit

Permalink
fix: add linux/arm (v7) and rename linux/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed Jan 9, 2025
1 parent 5588537 commit 3197e85
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: helm_ls_linux_arm
path: ./dist/linux-arm_linux_arm_7/helm-ls
retention-days: 1

- name: "Upload linux/arm64 artifact"
uses: actions/upload-artifact@v4
with:
name: helm_ls_linux_arm64
path: ./dist/linux-arm64_linux_arm64/helm-ls
retention-days: 1

Expand Down Expand Up @@ -113,6 +120,11 @@ jobs:
sha256sum helm_ls_linux_arm/helm-ls > helm_ls_linux_arm.sha256sum
echo "SHA_LINUX_ARM=$(cat helm_ls_linux_arm.sha256sum)" >> $GITHUB_ENV
- name: Generate Linux-ARM64 SHA256 checksums
run: |
sha256sum helm_ls_linux_arm64/helm-ls > helm_ls_linux_arm64.sha256sum
echo "SHA_LINUX_ARM=$(cat helm_ls_linux_arm64.sha256sum)" >> $GITHUB_ENV
- if: env.TAG_NAME == 'master'
run: echo 'SUBJECT=HelmLs development (prerelease) build' >> $GITHUB_ENV

Expand All @@ -138,6 +150,7 @@ jobs:
helm_ls_linux_amd64:./helm_ls_linux_amd64/helm-ls
helm_ls_linux_amd64.sha256sum:./helm_ls_linux_amd64.sha256sum
helm_ls_linux_arm:./helm_ls_linux_arm/helm-ls
helm_ls_linux_arm64:./helm_ls_linux_arm64/helm-ls
helm_ls_linux_arm.sha256sum:./helm_ls_linux_arm.sha256sum
body: |
### macOS (x64)
Expand All @@ -152,9 +165,12 @@ jobs:
### Linux (x64)
1. Download **helm_ls_linux_amd64**
2. Run `./helm_ls_linux_amd64`
### Linux (ARM)
### Linux (ARM v7)
1. Download **helm_ls_linux_arm**
2. Run `./helm_ls_linux_arm`
### Linux (ARM64)
1. Download **helm_ls_linux_arm64**
2. Run `./helm_ls_linux_arm64`
## SHA256 Checksums
```
Expand All @@ -163,4 +179,5 @@ jobs:
${{ env.SHA_MACOS_ARM64 }}
${{ env.SHA_WINDOWS_64 }}
${{ env.SHA_LINUX_ARM }}
${{ env.SHA_LINUX_ARM64 }}
```
23 changes: 19 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ builds:
- -mod=readonly
ldflags:
- -s -w -X main.Version={{ .Env.VERSION }} -X main.GitCommit={{ .Env.GIT_COMMIT }} -X main.CompiledBy={{ .Env.COMPILED_BY }} -X main.Branch={{ .Env.BRANCH_NAME }} -X main.BuildTime={{ .Env.BUILD_TIME }}
- id: linux-arm
main: ./
binary: helm-ls
goos:
- linux
goarch:
- arm
goarm:
- "7"
env:
- CC=arm-linux-gnueabihf-gcc
- CXX=arm-linux-gnueabihf-g++
flags:
- -trimpath
ldflags:
- -s -w -X main.Version={{ .Env.VERSION }} -X main.GitCommit={{ .Env.GIT_COMMIT }} -X main.CompiledBy={{ .Env.COMPILED_BY }} -X main.Branch={{ .Env.BRANCH_NAME }} -X main.BuildTime={{ .Env.BUILD_TIME }}
- id: linux-arm64
main: ./
binary: helm-ls
Expand Down Expand Up @@ -68,13 +84,12 @@ builds:
ldflags:
- -X main.Version={{ .Env.VERSION }} -X main.GitCommit={{ .Env.GIT_COMMIT }} -X main.CompiledBy={{ .Env.COMPILED_BY }} -X main.Branch={{ .Env.BRANCH_NAME }} -X main.BuildTime={{ .Env.BUILD_TIME }}
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

- "^docs:"
- "^test:"

0 comments on commit 3197e85

Please sign in to comment.