mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
Add FreeBSD build on Cirrus CI
This commit is contained in:
parent
e63a58c5ba
commit
6c806a7145
4
.ci/unix-build.sh
Executable file
4
.ci/unix-build.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||||
|
cmake --build .
|
6
.ci/unix-test.sh
Executable file
6
.ci/unix-test.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd build
|
||||||
|
ctest -E Windows
|
||||||
|
if [ -f "test/std_filesystem_test" ]; then
|
||||||
|
test/std_filesystem_test || true
|
||||||
|
fi
|
13
.cirrus.yml
Normal file
13
.cirrus.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
freebsd_instance:
|
||||||
|
image_family: freebsd-12-1
|
||||||
|
|
||||||
|
task:
|
||||||
|
install_script: |
|
||||||
|
pkg install -y cmake
|
||||||
|
pw groupadd testgrp
|
||||||
|
pw useradd testuser -g testgrp -w none -m
|
||||||
|
chown -R testuser:testgrp .
|
||||||
|
build_script: |
|
||||||
|
sudo -u testuser .ci/unix-build.sh
|
||||||
|
test_script: |
|
||||||
|
sudo -u testuser .ci/unix-test.sh
|
Loading…
x
Reference in New Issue
Block a user