Use the packet trace timestamps in netflow records #147
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test master and PRs | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
goos: linux | |
- os: macos-latest | |
goos: darwin | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: install libpcap | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install -y libpcap-dev | |
- name: setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: test | |
run: go test ./... | |
- name: build | |
run: go build -o flowpipeline -ldflags "-X main.Version=${{ github.sha }}" . | |
- name: save binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: flowpipeline-${{ matrix.goos }} | |
path: ./flowpipeline | |
- name: build statically linked | |
run: go build -o flowpipeline-static -ldflags "-X main.Version=${{ github.sha }}" . | |
env: | |
CGO_ENABLED: 0 | |
- name: save statically linked binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: flowpipeline-${{ matrix.goos }}-static | |
path: ./flowpipeline-static |