ci: build Ground Station for linux arm64
Build Ground Station / build (push) Failing after 11s

This commit is contained in:
2026-09-29 12:33:18 +02:00
parent b946e5b59a
commit d85850608a
2 changed files with 46 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
name: Build Ground Station
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: groundstation-build
timeout-minutes: 30
env:
CGO_ENABLED: "0"
GOOS: linux
GOARCH: arm64
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Test and build arm64 binary
shell: bash
run: |
set -euo pipefail
go test ./...
go vet ./...
mkdir -p dist
go build -trimpath -ldflags='-s -w' -o dist/groundstation-linux-arm64 ./cmd/groundstation
tar -C dist -czf dist/groundstation-linux-arm64.tar.gz groundstation-linux-arm64
sha256sum dist/groundstation-linux-arm64.tar.gz > dist/groundstation-linux-arm64.tar.gz.sha256
sha256sum dist/groundstation-linux-arm64
- name: Upload arm64 artifact
uses: actions/upload-artifact@v4
with:
name: groundstation-linux-arm64-${{ github.sha }}
retention-days: 30
path: dist/*
+7
View File
@@ -0,0 +1,7 @@
FROM golang:1.27-bookworm
RUN apt-get update \
&& apt-get install -y --no-install-recommends nodejs git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace