mirror of
https://github.com/gulrak/filesystem.git
synced 2026-10-28 18:07:19 +08:00
Merge pull request #214 from neilpang/freebsd-ci
Add a FreeBSD job on GitHub Actions to replace the retired Cirrus CI task
This commit is contained in:
commit
585ca03f4c
31
.github/workflows/build_freebsd.yml
vendored
Normal file
31
.github/workflows/build_freebsd.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: FreeBSD
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
freebsd:
|
||||||
|
name: FreeBSD 14
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v7
|
||||||
|
- name: Build and test
|
||||||
|
uses: vmactions/freebsd-vm@v1
|
||||||
|
with:
|
||||||
|
release: '14'
|
||||||
|
usesh: true
|
||||||
|
copyback: false
|
||||||
|
cache-after-prepare: true
|
||||||
|
prepare: pkg install -y cmake
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
set -u
|
||||||
|
set -x
|
||||||
|
# Same as .cirrus.yml did: the suite must not run as root, or the
|
||||||
|
# permission tests never see the errors they check for.
|
||||||
|
pw groupadd testgrp
|
||||||
|
pw useradd testuser -g testgrp -w none -m
|
||||||
|
chown -R testuser:testgrp .
|
||||||
|
wd=$(pwd)
|
||||||
|
su -l testuser -c "cd $wd && sh .ci/unix-build.sh"
|
||||||
|
su -l testuser -c "cd $wd && sh .ci/unix-test.sh"
|
||||||
Loading…
x
Reference in New Issue
Block a user