2 Commits

Author SHA1 Message Date
29d91d1133 .gitea/workflows/build.yaml aktualisiert
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Successful in 10m13s
Build Process Supervisor / build (arm, 6, , linux) (push) Has been cancelled
Build Process Supervisor / build (arm64, , linux) (push) Has been cancelled
Build Process Supervisor / build (amd64, .exe, windows) (push) Has been cancelled
2025-08-05 13:54:42 +02:00
f40c54ebc1 set go version and fix goarm 2025-08-05 13:53:47 +02:00

View File

@@ -36,19 +36,18 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: 'stable' go-version: '1.24.5'
- name: Build binaries - name: Build binaries
run: | run: |
OUTPUT="bin/${{ env.APP_NAME }}-${{ matrix.os }}-${{ matrix.arch }}" OUTPUT="bin/${APP_NAME}-${{ matrix.os }}-${{ matrix.arch }}"
if [ "${{ matrix.arm_version }}" != "" ]; then if [ -n "${{ matrix.arm_version }}" ]; then
OUTPUT="${OUTPUT}v${{ matrix.arm_version }}" OUTPUT="${OUTPUT}v${{ matrix.arm_version }}"
export GOARM=${{ matrix.arm_version }}
fi fi
OUTPUT="${OUTPUT}${{ matrix.ext }}" OUTPUT="${OUTPUT}${{ matrix.ext }}"
echo "Building $OUTPUT" echo "Building $OUTPUT"
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} \ GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags="-s -w" -trimpath -o "$OUTPUT"
{{ matrix.arm_version && format('GOARM={0}', matrix.arm_version) || '' }} \
go build -ldflags="-s -w" -trimpath -o "$OUTPUT"
shell: bash shell: bash
- name: Upload artifacts - name: Upload artifacts