mirror of
https://github.com/kerberos-io/agent.git
synced 2026-11-07 20:30:35 +00:00
Use Go 1.26.10 locally without automatic toolchain switching, verify downloaded modules, and build with read-only module metadata and trimmed source/VCS paths. Pin Go, Node, and Debian multi-platform manifests while retaining the compatible CGO/FFmpeg runtime and existing architecture selection. Align Go CI and document pin-refresh and ARMv6 limitations. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [develop, master]
|
|
pull_request:
|
|
branches: [develop, master]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v4
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.26.10"
|
|
check-latest: true
|
|
cache: true
|
|
cache-dependency-path: machinery/go.sum
|
|
- name: Install native dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
libavcodec-dev \
|
|
libavutil-dev \
|
|
libswresample-dev \
|
|
libswscale-dev \
|
|
pkg-config
|
|
- name: Get dependencies
|
|
run: cd machinery && go mod download && go mod verify
|
|
- name: Build
|
|
run: cd machinery && go build -mod=readonly -trimpath -buildvcs=false -v ./...
|
|
- name: Vet
|
|
run: cd machinery && go vet -v ./...
|
|
- name: Test
|
|
run: cd machinery && go test -v ./...
|