Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD kernel support #128

Merged
merged 10 commits into from
Nov 4, 2022
Prev Previous commit
Next Next commit
internal/freebsd: prepare CI to run tests on FreeBSD
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
  • Loading branch information
stv0g committed Oct 11, 2022
commit cb9dd8dda3a31747d8e9e2a0d15aa8a90b9c2ce5
4 changes: 4 additions & 0 deletions .builds/freebsd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
image: freebsd/latest
packages:
- go
- bash
- sudo
- wireguard
sources:
- https://github.com/WireGuard/wgctrl-go
environment:
GO111MODULE: "on"
GOBIN: "/home/build/go/bin"
CGO_ENABLED: "1"
tasks:
- setup-wireguard: |
./wgctrl-go/.cibuild.sh
Expand Down
6 changes: 6 additions & 0 deletions .cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ if [ "${KERNEL}" == "OpenBSD" ]; then
exit 0
fi

if [ "${KERNEL}" == "FreeBSD" ]; then
# Configure a WireGuard interface.
sudo ifconfig wg create name wg0
sudo ifconfig wg0 up
fi

if [ "${KERNEL}" == "Linux" ]; then
# Configure a WireGuard interface.
sudo ip link add wg0 type wireguard
Expand Down