diff options
author | leaf corcoran <leafot@gmail.com> | 2019-09-22 11:13:37 -0700 |
---|---|---|
committer | leaf <leafot@gmail.com> | 2020-04-25 14:24:18 -0700 |
commit | dbcfb92e12e9016060d1907a2556cc61e82f467d (patch) | |
tree | 47eb01407638b5cfbfebea902636d1a2bd78202f /.github | |
parent | c3bc1a1c171b002289946794dd187977bf3370d6 (diff) | |
download | lua-cjson-dbcfb92e12e9016060d1907a2556cc61e82f467d.tar.gz lua-cjson-dbcfb92e12e9016060d1907a2556cc61e82f467d.tar.bz2 lua-cjson-dbcfb92e12e9016060d1907a2556cc61e82f467d.zip |
run with gcc and clang
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fc8a49e..a2076f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -7,6 +7,7 @@ jobs: | |||
7 | strategy: | 7 | strategy: |
8 | fail-fast: false | 8 | fail-fast: false |
9 | matrix: | 9 | matrix: |
10 | cc: ["gcc", "clang"] | ||
10 | luaVersion: ["5.1", "5.2", "5.3", "luajit", "luajit-openresty"] | 11 | luaVersion: ["5.1", "5.2", "5.3", "luajit", "luajit-openresty"] |
11 | include: | 12 | include: |
12 | - luaVersion: "luajit" | 13 | - luaVersion: "luajit" |
@@ -21,17 +22,24 @@ jobs: | |||
21 | steps: | 22 | steps: |
22 | - uses: actions/checkout@master | 23 | - uses: actions/checkout@master |
23 | 24 | ||
24 | - uses: leafo/gh-actions-lua@v3 | 25 | - uses: leafo/gh-actions-lua@master |
26 | env: | ||
27 | CC: ${{ matrix.cc }} | ||
25 | with: | 28 | with: |
26 | luaVersion: ${{ matrix.luaVersion }} | 29 | luaVersion: ${{ matrix.luaVersion }} |
30 | luaCompileFlags: CC=${{ matrix.cc }} | ||
27 | 31 | ||
28 | - uses: leafo/gh-actions-luarocks@v2 | 32 | - uses: leafo/gh-actions-luarocks@v2 |
29 | 33 | ||
30 | - name: runtests.sh | 34 | - name: runtests.sh |
35 | env: | ||
36 | CC: ${{ matrix.cc }} | ||
31 | run: | | 37 | run: | |
32 | LUA_DIR=.lua ${{ matrix.runtestEnv }} ./runtests.sh PREFIX=.lua ${{ matrix.runtestArgs }} | 38 | LUA_DIR=.lua ${{ matrix.runtestEnv }} ./runtests.sh PREFIX=.lua ${{ matrix.runtestArgs }} |
33 | 39 | ||
34 | - name: setup prove | 40 | - name: setup prove |
41 | env: | ||
42 | CC: ${{ matrix.cc }} | ||
35 | run: | | 43 | run: | |
36 | make PREFIX=.lua ${{ matrix.runtestArgs }} | 44 | make PREFIX=.lua ${{ matrix.runtestArgs }} |
37 | sudo apt-get install -q valgrind libipc-run3-perl cppcheck cpanminus | 45 | sudo apt-get install -q valgrind libipc-run3-perl cppcheck cpanminus |