From: Martin Tournoij Date: Wed, 16 Nov 2022 02:26:34 +0000 (+0100) Subject: Run FreeBSD CI on Cirrus X-Git-Tag: v1.7.2~24^2 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=5f1f7857c8e20d27ac10ae23f5fc39abeedabb50;p=fsnotify.git Run FreeBSD CI on Cirrus --- diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..89cd022 --- /dev/null +++ b/.cirrus.yml @@ -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 ./... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23431e7..98b86ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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