mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Mark all directories as safe so CI builds don't fail with "unsafe repository" errors
This commit is contained in:
@@ -57,6 +57,10 @@ has_clang || has_gcc || die "No compiler available"
|
||||
export CCACHE_DIR=$PWD/build-ci-ccache
|
||||
ccache -M4G
|
||||
|
||||
# Mark all directories as safe so checkouts performed in CMakeLists.txt don't cause "unsafe repository" errors.
|
||||
# See https://github.com/actions/checkout/issues/766
|
||||
git config --global --add safe.directory '*'
|
||||
|
||||
# Use shallow clones of submodules for space/time efficiency.
|
||||
#git submodule update --init --depth=1 2>&1 | cat
|
||||
|
||||
|
||||
@@ -55,6 +55,11 @@ jobs:
|
||||
cd build
|
||||
cmake -S .. -G Ninja -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON -DBUILD_TOOLS=ON
|
||||
|
||||
# Mark all directories as safe so checkouts performed in CMakeLists.txt don't cause "unsafe repository" errors.
|
||||
# See https://github.com/actions/checkout/issues/766
|
||||
- name: Configure Git
|
||||
run: git config --global --add safe.directory '*'
|
||||
|
||||
- name: Build projects
|
||||
working-directory: '${{ github.workspace }}/build'
|
||||
run: ninja
|
||||
|
||||
Reference in New Issue
Block a user