Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix heisenbug of windows pipelines not working #554

Merged
merged 14 commits into from
Jan 5, 2024
2 changes: 2 additions & 0 deletions .gitlab-ci-scripts/local-before-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ case ${DISTRO} in
buster) make buster-debsource ;;
esac
;;
win) # Do nothing for windows
;;
*) # We expect only RPM by default
[ -d rpm ] || {
echo "using freshly cloned and adapted rpm folder"
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,13 @@ $(OBJDIR)/%.o : $(SRCDIR)/%.c
set -e ;\
depFileName=$(OBJDIR)/$*.d ;\
$(CC) -MM $(CFLAGS) $< -o $${depFileName} $(DEFINE_USE_CJSON_SO) $(DEFINE_USE_LIST_SO) $(DEFINE_USE_MUSTACHE_SO) ;\
TEST="${MINGW}${MSYS}";\
[ -z ${TEST} ] || {\
ls -la obj/oidc-agent > /dev/null ;\
ls -la `dirname $${depFileName}` > /dev/null;\
echo "mv -f $${depFileName} $${depFileName}.tmp" ;\
sleep 2.5;\
};\
mv -f $${depFileName} $${depFileName}.tmp ;\
sed -e 's|.*:|$@:|' < $${depFileName}.tmp > $${depFileName} ;\
cp -f $${depFileName} $${depFileName}.tmp ;\
Expand Down
Loading