From 737264a3495298e69dcc37582052e767e9121954 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 2 Nov 2023 13:38:36 -0300 Subject: [PATCH] CI: add a job running clang (#60) * CI: add a job running clang * CI: fix compiler call that was hardcoded to gcc * CI: run clang in default mode --- .github/workflows/compat53-tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compat53-tests.yml b/.github/workflows/compat53-tests.yml index 40819ce..34a4f78 100644 --- a/.github/workflows/compat53-tests.yml +++ b/.github/workflows/compat53-tests.yml @@ -19,6 +19,9 @@ jobs: - luaVersion: "lua=5.1" compiler: g++ external: true + - luaVersion: "lua=5.1" + compiler: clang + external: false - luaVersion: "luajit=@v2.1 --compat=none" compiler: gcc external: false @@ -55,7 +58,7 @@ jobs: if [ "${{ matrix.external }}" = true ]; then DEF="-DCOMPAT53_PREFIX=compat53" SRC="c-api/compat-5.3.c"; fi ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/testmod.so tests/testmod.c ${SRC} ${CC} ${CFLAGS} -Inew/include ${DEF} -shared -o new/testmod.so tests/testmod.c ${SRC} - gcc ${CFLAGS} -Iold/include ${DEF} -shared -o old/compat53.so ltablib.c lutf8lib.c lstrlib.c liolib.c ${SRC} + ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/compat53.so ltablib.c lutf8lib.c lstrlib.c liolib.c ${SRC} - name: run test scripts run: | (cd old && bin/lua ../tests/test.lua) > old.txt