mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
Cirrus-CI: fix git usage by build user
The git checkout it owned by root, but builds are run as "user". git
refuses to operate in such an environment unless the directory is
trusted so make "user" trust it.
Fixes CI after 99b8c0c35b
.
Sponsored by: DARPA
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D42903
This commit is contained in:
parent
4c3aa00c0a
commit
663e4fa38f
|
@ -80,9 +80,10 @@ task:
|
|||
- gpart show
|
||||
- df -m
|
||||
- pkg --version
|
||||
- pw useradd user
|
||||
- pw useradd -n user -m
|
||||
- mkdir -p /usr/obj/$(pwd -P)
|
||||
- chown user:user /usr/obj/$(pwd -P)
|
||||
- su user -c "git config --global --add safe.directory $(pwd -P)"
|
||||
|
||||
build_world_script:
|
||||
- su user -c "make -j$(sysctl -n hw.ncpu) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"
|
||||
|
|
Loading…
Reference in a new issue