Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add linux/arm (v7) and rename linux/arm64 #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:"
Loading