summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-12-23 18:13:20 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-01-02 13:42:47 -0500
commitee200c07643801c8b53e5b80df704ecbf77a884e (patch)
tree3983bceb25872ca5da4e0019b19def0ae30d8fc7 /.github/workflows/ci.yml
parent1117564e6f06860b826f0bc9d27e7d26b7e56eee (diff)
downloadbfs-ee200c07643801c8b53e5b80df704ecbf77a884e.tar.xz
ci: Use vmactions/freebsd-vm
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml37
1 files changed, 21 insertions, 16 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 38194f2..701eafc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -62,25 +62,30 @@ jobs:
freebsd:
name: FreeBSD
- if: ${{ github.repository_owner == 'tavianator' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
-
runs-on: ubuntu-22.04
- concurrency: spurion
-
steps:
- uses: actions/checkout@v4
- - uses: tailscale/github-action@v2
- with:
- oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
- oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
- tags: tag:ci
-
- name: Run tests
- run: |
- spurion=$(tailscale ip -6 spurion)
- mkdir ~/.ssh
- printf 'Host %s\n\tStrictHostKeyChecking=accept-new\n\tUser github\n' "$spurion" >~/.ssh/config
- rsync -rl --delete . "[$spurion]:bfs"
- ssh "$spurion" '. ~/.ssh/rc; gmake -C bfs -j$(nproc) distcheck CC=clang16 JOBS=-j$(nproc)'
+ uses: vmactions/freebsd-vm@v1
+ with:
+ release: "14.0"
+ usesh: true
+ copyback: false
+
+ prepare: |
+ pkg install -y \
+ bash \
+ expect \
+ gmake \
+ llvm16 \
+ oniguruma \
+ sudo \
+ tcl-wrapper
+ pw useradd -n action -m -G wheel -s /usr/local/bin/bash
+ echo "%wheel ALL=(ALL) NOPASSWD: ALL" >>/usr/local/etc/sudoers
+
+ run: |
+ chown -R action:action .
+ su action -c 'gmake -j$(nproc) distcheck CC=clang16 JOBS=-j$(nproc)'