summaryrefslogtreecommitdiffstats
path: root/.github/workflows/freebsd.yml
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-03-28 15:48:33 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-03-28 17:58:35 -0400
commit5fb7dabe8b0cf90abddbce7d2213b169f3dff7ce (patch)
treeaa320d677200f222999420bba9bdcbbd33cb12ed /.github/workflows/freebsd.yml
parent48dfba55b283120a534f0e5ed9c0f4ee694ad5df (diff)
downloadbfs-5fb7dabe8b0cf90abddbce7d2213b169f3dff7ce.tar.xz
ci: Add a FreeBSD build
Diffstat (limited to '.github/workflows/freebsd.yml')
-rw-r--r--.github/workflows/freebsd.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
new file mode 100644
index 0000000..0187096
--- /dev/null
+++ b/.github/workflows/freebsd.yml
@@ -0,0 +1,32 @@
+name: FreeBSD
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install dependencies
+ env:
+ SSH_KEY: ${{ secrets.SSH_KEY }}
+ TAILSCALE_KEY: ${{ secrets.TAILSCALE_KEY }}
+ TAILSCALE_MACHINE_KEY: ${{ secrets.TAILSCALE_MACHINE_KEY }}
+ run: |
+ curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.gpg | sudo apt-key add -
+ curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.list | sudo tee /etc/apt/sources.list.d/tailscale.list
+ sudo apt-get update -y
+ sudo apt-get install -y tailscale
+ printf '%s' "TAILSCALE_MACHINE_KEY" | sudo tee /var/lib/tailscale/tailscaled.state >/dev/null
+ sudo tailscale up --authkey="$TAILSCALE_KEY"
+ mkdir ~/.ssh
+ printf '%s' "$SSH_KEY" >~/.ssh/github-actions
+ chmod 0600 ~/.ssh/github-actions
+ printf 'Host muon\n\tStrictHostKeyChecking=accept-new\n\tUser github\n\tIdentityFile ~/.ssh/github-actions\n' >~/.ssh/config
+
+ - name: Run tests
+ run: |
+ rsync -rl --delete . muon:bfs
+ ssh muon 'gmake -C bfs -j$(sysctl -n hw.ncpu) distcheck'