mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-06 20:54:09 +01:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUgJfmvmaj6oGnEbFL7
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# Pull Requests: Tests und Cross-Compile für alle Zielplattformen.
|
|
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go vet ./... && go test ./...
|
|
- name: Terminal-Emulator (eigene Kopie in third_party/vt)
|
|
run: cd third_party/vt && go test ./...
|
|
# Bildschirm-Tests: abweichende Bilder zum Ansehen hochladen
|
|
- uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: golden-actual
|
|
path: internal/ui/testdata/golden-actual/
|
|
if-no-files-found: ignore
|
|
- name: Cross-Compile
|
|
run: |
|
|
for t in windows/arm64 windows/386 windows/amd64 darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 linux/arm linux/riscv64; do
|
|
CGO_ENABLED=0 GOARM=7 GOOS=${t%/*} GOARCH=${t#*/} go build -o /dev/null ./cmd/sshtermy
|
|
done
|
|
|
|
packaging:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: sudo apt-get install -y -qq apt-utils python3-yaml >/dev/null
|
|
- run: packaging/check.sh
|