summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 04316d3..7854579 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -73,6 +73,9 @@ jobs:
export CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11"
if [ "$CC" = "clang" ]; then
CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function"
+ export LDFLAGS="-Wl,--no-undefined-version,--fatal-warnings"
+ else
+ export LDFLAGS="-Wl,--no-undefined-version"
fi
./autogen.sh
@@ -138,4 +141,14 @@ jobs:
export NLTST_SEED_RAND=
make -j 5 check
+ - name: Link with mold
+ run: |
+ sudo apt-get -y --no-install-recommends install \
+ mold
+ git clean -fdx
+ export LDFLAGS="-fuse-ld=mold -Wl,--fatal-warnings"
+ ./autogen.sh
+ ./configure
+ make -j 5 V=1
+
- run: echo "🍏 This job's status is ${{ job.status }}."