Testing build on local runners while GitHub hosted runners are backed up. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
44 lines
1,019 B
YAML
44 lines
1,019 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [dev, main]
|
|
pull_request:
|
|
branches: [dev, main]
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CORE_VERSION: dev
|
|
|
|
jobs:
|
|
qa:
|
|
runs-on: [self-hosted, Linux]
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
|
|
|
|
- name: Build core CLI
|
|
run: |
|
|
go build -ldflags "-X github.com/host-uk/core/pkg/cli.AppVersion=${{ env.CORE_VERSION }}" -o /usr/local/bin/core .
|
|
core --version
|
|
|
|
- name: Generate code
|
|
run: go generate ./internal/cmd/updater/...
|
|
|
|
- name: Run QA
|
|
# Skip lint until golangci-lint supports Go 1.25
|
|
run: core go qa --skip=lint
|
|
|
|
- name: Verify build
|
|
run: |
|
|
core build --targets=linux/amd64 --ci
|
|
dist/linux_amd64/core --version
|