Skip to content

Commit

Permalink
Update apple-gdb-1824-macos.yml
Browse files Browse the repository at this point in the history
I hate the flakiness of this build system... my kingdom for consistent timestamps! See issue #40

Change-Id: I71e0cbd2cc8693845882cc21d66c0a995c4181d5
  • Loading branch information
cooljeanius committed Feb 2, 2024
1 parent ffaf8f6 commit 9ffdda3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/apple-gdb-1824-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ jobs:
else \
echo "autoconf available at $(which autoconf)"; \
fi
if test -z "$(which gm4)" || test ! -x "$(which gm4)"; then \
brew install m4 || brew analytics on || find . -name '*.m4' -print; \
else \
echo "gm4 available at $(which gm4)"; \
fi
./bootstrap || stat ./bootstrap || test -x ./bootstrap
if test libltdl/configure -ot libltdl/configure.ac; then \
if test -x libltdl/configure && test -s libltdl/configure; then \
Expand All @@ -121,15 +126,23 @@ jobs:
for subdir in libltdl libltdl/loaders libtool_gnu/libltdl/loaders loaders; do \
if test -d "${subdir}" && test -w "${subdir}" && test ! -d "${subdir}"/.deps; then \
mkdir -pv "${subdir}"/.deps; \
elif test -e "${subdir}"/.deps; then \
stat "${subdir}"/.deps; \
elif test -r "${subdir}"; then \
find "${subdir}" -name '*.Plo' -print; \
elif test -x "$(which sync)"; then \
sync; \
fi; \
if test -r "${subdir}"/Makefile && test -s "${subdir}"/Makefile && test -w "${subdir}"; then \
pushd "${subdir}"; \
echo "attempting to ensure depfiles are fine in ${subdir}..."; \
make am--depfiles || make am--refresh || make distdir-am || stat Makefile; \
popd; \
else \
echo "no usable Makefile found in ${subdir}"; \
fi; \
done
echo "hopefully libtool_gnu timestamps will be fine..."
sync && echo "hopefully libtool_gnu timestamps will be fine..."
- name: Full build to get anything that might have been missed
run: |
cd src
Expand All @@ -138,16 +151,16 @@ jobs:
echo "nproc says we can use $(nproc) build jobs"; \
if test "$(nproc)" -eq 4; then \
echo "special-casing the 4-job build case..."; \
(make -j"$(nproc)" || make -j2 || make || remake -dpPw --verbosity=terse >>config.log || remake --trace=noshell --verbosity=terse >>config.log || remake all-gdb >>config.log || clear); \
(make -j"$(nproc)" || make -j2 || make || remake -dpPw --verbosity=terse >>config.log || remake --trace=noshell --verbosity=terse >>config.log || remake all-gdb >>config.log || clear || stat Makefile); \
else
(make -j"$(nproc)" || make || remake -dpPw --verbosity=terse >>config.log || remake --trace=noshell --versbosity=terse >>config.log || remake all-gdb >>config.log || clear); \
(make -j"$(nproc)" || make || remake -dpPw --verbosity=terse >>config.log || remake --trace=noshell --versbosity=terse >>config.log || remake all-gdb >>config.log || clear || stat Makefile); \
fi; \
elif test -x "$(which gnproc)" && test "$(gnproc)" -ge 2; then \
echo "gnproc says we can use $(gnproc) build jobs"; \
(make -j"$(gnproc)" || make || remake -dpPw --verbosity=terse >>config.log || remake --trace=noshell --verbosity=terse >>config.log || remake all-gdb >>config.log || clear); \
(make -j"$(gnproc)" || make || remake -dpPw --verbosity=terse >>config.log || remake --trace=noshell --verbosity=terse >>config.log || remake all-gdb >>config.log || clear || stat Makefile); \
else \
echo "on the slow path..."; \
(make || remake -dpPw --verbosity=terse >>config.log || remake --trace=noshell --verbosity=terse >>config.log || remake all-gdb >>config.log || clear); \
(make || remake -dpPw --verbosity=terse >>config.log || remake --trace=noshell --verbosity=terse >>config.log || remake all-gdb >>config.log || clear || stat Makefile); \
fi
- run: cd src && make check-libiberty
- run: cd src && sync && make -C tcl/unix tcltest && sync
Expand Down

0 comments on commit 9ffdda3

Please sign in to comment.