13 Commits

Author SHA1 Message Date
Adrian Zürcher
0e8864d4da remove sudo
All checks were successful
Build Process Supervisor / build (amd64, .exe, windows) (push) Successful in 2m32s
Build Process Supervisor / build (amd64, , linux) (push) Successful in 2m45s
Build Process Supervisor / build (arm, 6, , linux) (push) Successful in 2m32s
Build Process Supervisor / build (arm64, , linux) (push) Successful in 2m34s
2025-08-05 15:50:52 +02:00
Adrian Zürcher
490fae7d5b fix install zip
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Failing after 16s
Build Process Supervisor / build (amd64, .exe, windows) (push) Failing after 16s
Build Process Supervisor / build (arm64, , linux) (push) Has been cancelled
Build Process Supervisor / build (arm, 6, , linux) (push) Has been cancelled
2025-08-05 15:48:01 +02:00
Adrian Zürcher
ca9d8af13f add install zip
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Failing after 1m19s
Build Process Supervisor / build (amd64, .exe, windows) (push) Failing after 1m16s
Build Process Supervisor / build (arm, 6, , linux) (push) Failing after 1m17s
Build Process Supervisor / build (arm64, , linux) (push) Has been cancelled
2025-08-05 15:44:09 +02:00
Adrian Zürcher
2537d5f1c8 second fix wrong go version
Some checks failed
Build Process Supervisor / build (amd64, .exe, windows) (push) Failing after 6m39s
Build Process Supervisor / build (amd64, , linux) (push) Failing after 6m52s
Build Process Supervisor / build (arm, 6, , linux) (push) Failing after 6m42s
Build Process Supervisor / build (arm64, , linux) (push) Failing after 6m33s
2025-08-05 15:29:28 +02:00
Adrian Zürcher
79ad631494 fix wrong go version
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Failing after 22s
Build Process Supervisor / build (amd64, .exe, windows) (push) Failing after 23s
Build Process Supervisor / build (arm, 6, , linux) (push) Failing after 22s
Build Process Supervisor / build (arm64, , linux) (push) Failing after 22s
2025-08-05 15:23:16 +02:00
Adrian Zürcher
a0046e1848 try to cache go
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Failing after 2m52s
Build Process Supervisor / build (amd64, .exe, windows) (push) Failing after 2m53s
Build Process Supervisor / build (arm, 6, , linux) (push) Failing after 26s
Build Process Supervisor / build (arm64, , linux) (push) Failing after 26s
2025-08-05 15:17:58 +02:00
Adrian Zürcher
d5f314dad2 fix yaml
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Successful in 20m56s
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 14:16:20 +02:00
Adrian Zürcher
988a332249 cache golang 2025-08-05 14:15:21 +02:00
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
Adrian Zürcher
c47a664f1f simplify code by adding matrix
Some checks failed
Build Process Supervisor / build (amd64, , linux) (push) Failing after 4m42s
Build Process Supervisor / build (amd64, .exe, windows) (push) Failing after 4m43s
Build Process Supervisor / build (arm, 6, , linux) (push) Has been cancelled
Build Process Supervisor / build (arm64, , linux) (push) Failing after 5m12s
2025-08-05 13:43:22 +02:00
9a1bb814ee .gitea/workflows/build.yaml aktualisiert
All checks were successful
Build Process Supervisor / build (push) Successful in 13m4s
2025-08-05 13:11:24 +02:00
d2a563588c Remove dir change
Some checks failed
Build Process Supervisor / build (push) Failing after 7m14s
2025-08-05 12:38:10 +02:00

View File

@@ -1,6 +1,9 @@
name: Build Process Supervisor name: Build Process Supervisor
on: [push] on:
push:
tags:
- '*'
env: env:
APP_NAME: processSupervisor APP_NAME: processSupervisor
@@ -9,51 +12,87 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: windows
arch: amd64
ext: .exe
- os: linux
arch: amd64
ext: ""
- os: linux
arch: arm64
ext: ""
- os: linux
arch: arm
arm_version: 6
ext: ""
steps: steps:
- name: Install zip
run: |
apt-get update && apt-get install -y zip
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Go - name: Ensure latest Go is installed in /data/go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Build for Windows amd64
run: | run: |
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-windows-amd64.exe ./... export GOROOT=/data/go/go
export PATH=$GOROOT/bin:$PATH
export GOCACHE=/data/gocache
export GOMODCACHE=/data/gomodcache
mkdir -p $GOCACHE $GOMODCACHE
- name: Upload Windows amd64 binary if [ ! -x "$GOROOT/bin/go" ]; then
echo "Go not found in $GOROOT, downloading latest stable..."
GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n1)
echo "Latest version is $GO_VERSION"
mkdir -p /data/go
curl -sSL "https://go.dev/dl/${GO_VERSION}.linux-amd64.tar.gz" -o /tmp/go.tar.gz
tar -C /data/go -xzf /tmp/go.tar.gz
else
echo "Using cached Go from $GOROOT"
fi
go version
- name: Download Go dependencies
run: |
export GOROOT=/data/go/go
export PATH=$GOROOT/bin:$PATH
export GOCACHE=/data/gocache
export GOMODCACHE=/data/gomodcache
mkdir -p $GOCACHE $GOMODCACHE
go mod download
- name: Build binary
run: |
export GOROOT=/data/go/go
export PATH=$GOROOT/bin:$PATH
export GOCACHE=/data/gocache
export GOMODCACHE=/data/gomodcache
mkdir -p $GOCACHE $GOMODCACHE
OUTPUT="bin/${APP_NAME}-${{ matrix.os }}-${{ matrix.arch }}"
if [ -n "${{ matrix.arm_version }}" ]; then
OUTPUT="${OUTPUT}v${{ matrix.arm_version }}"
export GOARM=${{ matrix.arm_version }}
fi
OUTPUT="${OUTPUT}${{ matrix.ext }}"
echo "Building $OUTPUT"
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -ldflags="-s -w" -trimpath -o "$OUTPUT"
shell: bash
- name: Zip artifact
run: |
zip bin/${{ env.APP_NAME }}-${{ matrix.os }}-${{ matrix.arch }}.zip bin/${{ env.APP_NAME }}-*
- name: Upload zipped artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ${{env.APP_NAME}}-windows-amd64.exe name: ${{ env.APP_NAME }}-${{ matrix.os }}-${{ matrix.arch }}
path: bin/${{env.APP_NAME}}-windows-amd64.exe path: bin/${{ env.APP_NAME }}-${{ matrix.os }}-${{ matrix.arch }}.zip
- name: Build for Linux amd64
run: |
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-amd64 ./...
- name: Upload Linux amd64
uses: actions/upload-artifact@v3
with:
name: ${{env.APP_NAME}}-linux-amd64
path: bin/${{env.APP_NAME}}-linux-amd64
- name: Build for Linux arm64
run: |
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-arm64 ./...
- name: Upload Linux arm64
uses: actions/upload-artifact@v3
with:
name: ${{env.APP_NAME}}-linux-arm64
path: bin/${{env.APP_NAME}}-linux-arm64
- name: Build for Linux armv6 (Raspberry Pi)
run: |
GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -trimpath -o bin/${APP_NAME}-linux-armv6 ./...
- name: Upload Linux armv6 (Raspberry Pi)
uses: actions/upload-artifact@v3
with:
name: ${{env.APP_NAME}}-linux-armv6
path: bin/${{env.APP_NAME}}-linux-armv6