Skip to content

Commit 9f4cfb2

Browse files
committed
cmake-ci remove build dir every time
1 parent 49b3809 commit 9f4cfb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/cmake_ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,16 @@ jobs:
183183
fi
184184
185185
build_dir="build"
186-
rm -rf $build_dir
187186
188187
for arch in "${arch_flags[@]}"; do
189188
arch_dir=$(echo "$arch" | tr -c 'A-Za-z0-9' '_')
190189
for cfg in "${configs[@]}"; do
191190
eval "$cfg"
192191
192+
# delete the build directory every time
193+
194+
rm -rf $build_dir
195+
193196
sanitizers="OFF"
194197
if [[ "$build_type" == "Debug" && "$RUNNER_OS" != "Windows" ]]; then
195198
sanitizers="ON"

0 commit comments

Comments
 (0)