diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..db98765 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: hbcontrol +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + test: + name: tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run test + uses: 0x1eef/hardenedbsd-vm@v1 + with: + release: '16-CURRENT' + run: | + mdo -u root pkg-static install -y go + make test \ No newline at end of file diff --git a/context.go b/context.go index ce8659c..3c34ed1 100644 --- a/context.go +++ b/context.go @@ -2,7 +2,7 @@ package hbcontrol /* #cgo LDFLAGS: -lhbsdcontrol - #include "control.h" + #include "hbcontrol.h" */ import "C" diff --git a/control.c b/hbcontrol.c similarity index 99% rename from control.c rename to hbcontrol.c index 96f2414..a5bde9e 100644 --- a/control.c +++ b/hbcontrol.c @@ -1,4 +1,4 @@ -#include "control.h" +#include "hbcontrol.h" #include #include #include diff --git a/control.h b/hbcontrol.h similarity index 100% rename from control.h rename to hbcontrol.h