LabCodeHub öffentliche Ansicht
Anmelden
Küpper / Quildrop öffentlich

fix: add armv7 (raspberrypi), GOARCH to buildsteps

R Rüdiger Küpper <rpr@9it.de> committete am 19.02.2026 09:09
bb015662a4847b639e177b5cebba7e0b16dec46f
1 geänderte Datei(en) +17 −6
Kontextzeilen: 0 1 2 3 10
geändert .github/workflows/build-and-release.yml
+17 −6 Datei ansehen
@@ -29,2 +29,5 @@ jobs:
29 29
            goarch: arm64
30 +
          - goos: linux
31 +
            goarch: arm
32 +
            goarm: '7'
30 33
          - goos: darwin
@@ -50,2 +53,3 @@ jobs:
50 53
          GOARCH: ${{ matrix.goarch }}
54 +
          GOARM: ${{ matrix.goarm }}
51 55
          CGO_ENABLED: '0'
@@ -54,3 +58,8 @@ jobs:
54 58
55 -
          BIN="${BINARY_NAME}-${GOOS}-${GOARCH}"
59 +
          SUFFIX="${GOOS}-${GOARCH}"
60 +
          if [ -n "${GOARM}" ]; then
61 +
            SUFFIX="${SUFFIX}v${GOARM}"
62 +
          fi
63 +
64 +
          BIN="${BINARY_NAME}-${SUFFIX}"
56 65
          if [ "${GOOS}" = "windows" ]; then
@@ -63,5 +72,5 @@ jobs:
63 72
          if [ "${GOOS}" = "windows" ]; then
64 -
            zip "dist/${BINARY_NAME}-${GOOS}-${GOARCH}.zip" "${BIN}"
73 +
            zip "dist/${BINARY_NAME}-${SUFFIX}.zip" "${BIN}"
65 74
          else
66 -
            tar -czf "dist/${BINARY_NAME}-${GOOS}-${GOARCH}.tar.gz" "${BIN}"
75 +
            tar -czf "dist/${BINARY_NAME}-${SUFFIX}.tar.gz" "${BIN}"
67 76
          fi
@@ -69,6 +78,8 @@ jobs:
69 78
      - name: Generate checksum
79 +
        env:
80 +
          SUFFIX: ${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm && format('v{0}', matrix.goarm) || '' }}
70 81
        run: |
71 82
          cd dist
72 -
          sha256sum * > checksums-${{ matrix.goos }}-${{ matrix.goarch }}.txt
73 -
          cat checksums-${{ matrix.goos }}-${{ matrix.goarch }}.txt
83 +
          sha256sum * > checksums-${SUFFIX}.txt
84 +
          cat checksums-${SUFFIX}.txt
74 85
@@ -77,3 +88,3 @@ jobs:
77 88
        with:
78 -
          name: ${{ env.BINARY_NAME }}-${{ matrix.goos }}-${{ matrix.goarch }}
89 +
          name: ${{ env.BINARY_NAME }}-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm && format('v{0}', matrix.goarm) || '' }}
79 90
          path: dist/*