4 Commits

Author SHA1 Message Date
Adrian Zürcher
784b812c99 another fix run to many spaces 2025-08-04 17:19:11 +02:00
Adrian Zürcher
a770875e2a another try change chckout repo 2025-08-04 17:18:00 +02:00
Adrian Zürcher
a0cbcf28fb try different workflow
Some checks failed
Build / build (push) Has been cancelled
2025-08-04 17:08:03 +02:00
Adrian Zürcher
b73b6ee0ed add build workflow
Some checks failed
Build Go Multi-Platform / build (push) Has been cancelled
2025-08-04 17:04:13 +02:00

View File

@@ -0,0 +1,40 @@
name: Build Go Multi-Platform
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
run: |
git clone https://gitea.tecamino.com/paadi/tecamino-proccessSupervisor.git .
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Build for Windows amd64
run: |
GOOS=windows GOARCH=amd64 go build -o build/myapp-windows-amd64.exe ./...
- name: Build for Linux amd64
run: |
GOOS=linux GOARCH=amd64 go build -o build/myapp-linux-amd64 ./...
- name: Build for Linux ARM64
run: |
GOOS=linux GOARCH=arm64 go build -o build/myapp-linux-arm64 ./...
- name: Build for Linux ARMv6 (Raspberry Pi)
run: |
GOOS=linux GOARCH=arm GOARM=6 go build -o build/myapp-linux-armv6 ./...
- name: List build artifacts
run: |
ls -lh build