mirror of
https://github.com/kerberos-io/agent.git
synced 2026-11-18 22:20:50 +00:00
42 lines
1.0 KiB
YAML
42 lines
1.0 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.25.x"
|
|
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
|
|
- name: Build
|
|
run: cd machinery && go build -v ./...
|
|
- name: Vet
|
|
run: cd machinery && go vet -v ./...
|
|
- name: Test
|
|
run: cd machinery && go test -v ./...
|