Skip to content

init

init #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install libhackrf (provides pkg-config: libhackrf for cgo)"
run: |
sudo apt-get update
sudo apt-get install -y libhackrf-dev pkg-config
- uses: actions/setup-go@v5
with:
go-version: '1.26'
check-latest: true
- name: Verify formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "These files need gofmt:"; echo "$unformatted"; exit 1
fi
- name: Vet
run: go vet ./...
- name: Test
env:
CGO_ENABLED: '1'
run: go test -race ./...
- name: Build logger
env:
CGO_ENABLED: '1'
run: go build -o hackrf-logger ./cmd/hackrf-logger