Skip to content

Commit 96b2ef2

Browse files
committed
Update build.yml
1 parent f63ad67 commit 96b2ef2

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
buildTests: 'Tests'
2525

2626
steps:
27+
- name: Configure
28+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
29+
2730
- name: Checkout
2831
uses: actions/checkout@v4
2932
with:
@@ -105,11 +108,6 @@ jobs:
105108
container: debian:11-slim
106109

107110
steps:
108-
- name: Checkout
109-
uses: actions/checkout@v4
110-
with:
111-
fetch-depth: 0
112-
113111
- name: Install dependencies
114112
run: |
115113
dpkg --add-architecture i386
@@ -121,6 +119,15 @@ jobs:
121119
git cmake rsync \
122120
g++ gcc
123121
122+
- name: Configure
123+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
124+
125+
- name: Checkout
126+
uses: actions/checkout@v4
127+
with:
128+
submodules: recursive
129+
fetch-depth: 0
130+
124131
- name: Build and Run unittests
125132
run: |
126133
rm -rf build && CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Unittests -B build && cmake --build build -j8

0 commit comments

Comments
 (0)