mirror of
https://github.com/kerberos-io/agent.git
synced 2026-10-23 18:18:24 +00:00
38 lines
1.1 KiB
YAML
38 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
|
|
container:
|
|
image: kerberos/base:6e68480
|
|
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.17, 1.18]
|
|
|
|
steps:
|
|
- name: Set up Go ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
- name: Install dependencies
|
|
run: apt install -y --no-install-recommends git build-essential cmake pkg-config unzip libgtk2.0-dev curl ca-certificates libcurl4-openssl-dev libssl-dev libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev
|
|
- 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 ./...
|