aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2023-11-02 13:38:36 -0300
committerGitHub <noreply@github.com>2023-11-02 13:38:36 -0300
commit737264a3495298e69dcc37582052e767e9121954 (patch)
tree01ed50c6854a43fea56ce3c75818b6d172962e45
parent8c7017ec6f49e1768490643647a4fa06461d02b6 (diff)
downloadlua-compat-5.3-737264a3495298e69dcc37582052e767e9121954.tar.gz
lua-compat-5.3-737264a3495298e69dcc37582052e767e9121954.tar.bz2
lua-compat-5.3-737264a3495298e69dcc37582052e767e9121954.zip
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
-rw-r--r--.github/workflows/compat53-tests.yml5
1 files changed, 4 insertions, 1 deletions
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:
19 - luaVersion: "lua=5.1" 19 - luaVersion: "lua=5.1"
20 compiler: g++ 20 compiler: g++
21 external: true 21 external: true
22 - luaVersion: "lua=5.1"
23 compiler: clang
24 external: false
22 - luaVersion: "luajit=@v2.1 --compat=none" 25 - luaVersion: "luajit=@v2.1 --compat=none"
23 compiler: gcc 26 compiler: gcc
24 external: false 27 external: false
@@ -55,7 +58,7 @@ jobs:
55 if [ "${{ matrix.external }}" = true ]; then DEF="-DCOMPAT53_PREFIX=compat53" SRC="c-api/compat-5.3.c"; fi 58 if [ "${{ matrix.external }}" = true ]; then DEF="-DCOMPAT53_PREFIX=compat53" SRC="c-api/compat-5.3.c"; fi
56 ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/testmod.so tests/testmod.c ${SRC} 59 ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/testmod.so tests/testmod.c ${SRC}
57 ${CC} ${CFLAGS} -Inew/include ${DEF} -shared -o new/testmod.so tests/testmod.c ${SRC} 60 ${CC} ${CFLAGS} -Inew/include ${DEF} -shared -o new/testmod.so tests/testmod.c ${SRC}
58 gcc ${CFLAGS} -Iold/include ${DEF} -shared -o old/compat53.so ltablib.c lutf8lib.c lstrlib.c liolib.c ${SRC} 61 ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/compat53.so ltablib.c lutf8lib.c lstrlib.c liolib.c ${SRC}
59 - name: run test scripts 62 - name: run test scripts
60 run: | 63 run: |
61 (cd old && bin/lua ../tests/test.lua) > old.txt 64 (cd old && bin/lua ../tests/test.lua) > old.txt