From 3197e85e3e7003743b95d773f7260ac198dbc4fc Mon Sep 17 00:00:00 2001 From: qvalentin Date: Thu, 9 Jan 2025 19:26:05 +0100 Subject: [PATCH] fix: add linux/arm (v7) and rename linux/arm64 --- .github/workflows/artifacts.yml | 19 ++++++++++++++++++- .goreleaser.yaml | 23 +++++++++++++++++++---- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index c0ad03cc..a36d730f 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -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 @@ -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 @@ -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) @@ -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 ``` @@ -163,4 +179,5 @@ jobs: ${{ env.SHA_MACOS_ARM64 }} ${{ env.SHA_WINDOWS_64 }} ${{ env.SHA_LINUX_ARM }} + ${{ env.SHA_LINUX_ARM64 }} ``` diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 79616442..2fbb8cf1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 @@ -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:"