Skip to content

PAC Backend

PAC Backend #491

Workflow file for this run

name: Agent CI
on:
push:
branches: [master]
paths:
- 'src/agent/agent/**'
- 'src/agent/common/**'
pull_request:
branches: [master, release-*]
paths:
- 'src/agent/agent/**'
- 'src/agent/common/**'
workflow_dispatch:
workflow_call:
inputs:
upload:
required: true
type: string
jobs:
build:
name: Build agent
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.6
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('src/agent/agent/go.sum') }}
- run: make BUILD_OUT_TAG=out clean all
working-directory: src/agent/agent/
- uses: actions/upload-artifact@v3
if: ${{ inputs.upload == 'true' }}
with:
name: agent
path: src/agent/agent/bin/