Skip to content

Commit

Permalink
Run FreeBSD CI on Cirrus
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Nov 16, 2022
1 parent c8ed0c8 commit 771c4ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
12 changes: 12 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
freebsd_task:
name: 'FreeBSD'
freebsd_instance:
image_family: freebsd-13-1
install_script:
- pkg update -f
- pkg install -y go
test_script: |
# run tests as user "cirrus" instead of root
- pw useradd cirrus -m
- chown -R cirrus:cirrus .
- sudo -u cirrus go test -race ./...
16 changes: 0 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,6 @@ jobs:
run: |
go test -race ./...
# FreeBSD
testFreeBSD:
runs-on: macos-12
name: test (freebsd, 1.18)
steps:
- uses: actions/checkout@v3
- name: test (freebsd, 1.18)
id: test
uses: vmactions/freebsd-vm@v0
with:
usesh: true
prepare: pkg install -y go
run: |
pw user add -n action -m
su action -c 'go test -race ./...'
# OpenBSD; no -race as the VM doesn't include the comp set.
#
# TODO: should probably add this, but on my local machine the tests time out
Expand Down

0 comments on commit 771c4ba

Please sign in to comment.