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

Merge branch 'main' of github.com:9IT-Full-Service/quilldrop

R Rüdiger Küpper <rpr@9it.de> committete am 19.02.2026 09:09
07eb3f4b3c770b2007ed4f980129563d09fdcd33
2 geänderte Datei(en) +21 −10
Kontextzeilen: 0 1 2 3 10
geändert .github/workflows/build-and-release.yml
+4 −4 Datei ansehen
@@ -32,24 +32,24 @@ jobs:
32 32
            goarm: '7'
33 33
          - goos: darwin
34 34
            goarch: amd64
35 35
          - goos: darwin
36 36
            goarch: arm64
37 37
          - goos: windows
38 38
            goarch: arm64
39 39
40 40
    steps:
41 41
      - name: Checkout
42 -
        uses: actions/checkout@v4
42 +
        uses: actions/checkout@v6
43 43
44 44
      - name: Setup Go
45 -
        uses: actions/setup-go@v5
45 +
        uses: actions/setup-go@v6
46 46
        with:
47 47
          go-version-file: go.mod
48 48
          cache: true
49 49
50 50
      - name: Build static binary
51 51
        env:
52 52
          GOOS: ${{ matrix.goos }}
53 53
          GOARCH: ${{ matrix.goarch }}
54 54
          GOARM: ${{ matrix.goarm }}
55 55
          CGO_ENABLED: '0'
@@ -77,32 +77,32 @@ jobs:
77 77
78 78
      - name: Generate checksum
79 79
        env:
80 80
          SUFFIX: ${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm && format('v{0}', matrix.goarm) || '' }}
81 81
        run: |
82 82
          cd dist
83 83
          sha256sum * > checksums-${SUFFIX}.txt
84 84
          cat checksums-${SUFFIX}.txt
85 85
86 86
      - name: Upload artifact
87 -
        uses: actions/upload-artifact@v4
87 +
        uses: actions/upload-artifact@v6
88 88
        with:
89 89
          name: ${{ env.BINARY_NAME }}-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm && format('v{0}', matrix.goarm) || '' }}
90 90
          path: dist/*
91 91
          if-no-files-found: error
92 92
93 93
  release:
94 94
    needs: build
95 95
    runs-on: ubuntu-latest
96 96
    steps:
97 97
      - name: Download all artifacts
98 -
        uses: actions/download-artifact@v4
98 +
        uses: actions/download-artifact@v7
99 99
        with:
100 100
          path: artifacts
101 101
          merge-multiple: true
102 102
103 103
      - name: Merge checksums
104 104
        run: |
105 105
          cd artifacts
106 106
          cat checksums-*.txt > checksums.txt
107 107
          rm checksums-*.txt
108 108
          echo "=== checksums.txt ==="
geändert .github/workflows/build-and-release.yml
+17 −6 Datei ansehen
@@ -20,20 +20,23 @@ jobs:
20 20
  build:
21 21
    runs-on: ubuntu-latest
22 22
    strategy:
23 23
      fail-fast: false
24 24
      matrix:
25 25
        include:
26 26
          - goos: linux
27 27
            goarch: amd64
28 28
          - goos: linux
29 29
            goarch: arm64
30 +
          - goos: linux
31 +
            goarch: arm
32 +
            goarm: '7'
30 33
          - goos: darwin
31 34
            goarch: amd64
32 35
          - goos: darwin
33 36
            goarch: arm64
34 37
          - goos: windows
35 38
            goarch: arm64
36 39
37 40
    steps:
38 41
      - name: Checkout
39 42
        uses: actions/checkout@v6
@@ -41,48 +44,56 @@ jobs:
41 44
      - name: Setup Go
42 45
        uses: actions/setup-go@v6
43 46
        with:
44 47
          go-version-file: go.mod
45 48
          cache: true
46 49
47 50
      - name: Build static binary
48 51
        env:
49 52
          GOOS: ${{ matrix.goos }}
50 53
          GOARCH: ${{ matrix.goarch }}
54 +
          GOARM: ${{ matrix.goarm }}
51 55
          CGO_ENABLED: '0'
52 56
        run: |
53 57
          set -euo pipefail
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
57 66
            BIN="${BIN}.exe"
58 67
          fi
59 68
60 69
          go build -trimpath -ldflags="-s -w" -o "${BIN}" .
61 70
62 71
          mkdir -p dist
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
68 77
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
75 86
      - name: Upload artifact
76 87
        uses: actions/upload-artifact@v6
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/*
80 91
          if-no-files-found: error
81 92
82 93
  release:
83 94
    needs: build
84 95
    runs-on: ubuntu-latest
85 96
    steps:
86 97
      - name: Download all artifacts
87 98
        uses: actions/download-artifact@v7
88 99
        with: