File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,22 @@ jobs:
1313 - os : " macos-latest"
1414 lua-version : " 5.4"
1515 libflag : " -bundle -undefined dynamic_lookup -all_load --coverage"
16+ - os : " windows-latest"
17+ toolchain : " msvc"
18+ lua-version : " 5.4"
19+ - os : " windows-latest"
20+ lua-version : " luajit"
1621 runs-on : ${{ matrix.os }}
1722
1823 steps :
1924 - uses : actions/checkout@master
2025
26+ - name : Setup MSVC
27+ # 'luarocks/gh-actions-lua' step requires msvc to build PUC-Rio Lua
28+ # versions on Windows (LuaJIT will be built using MinGW/gcc).
29+ if : ${{ matrix.toolchain == 'msvc' }}
30+ uses : ilammy/msvc-dev-cmd@v1
31+
2132 - uses : luarocks/gh-actions-lua@master
2233 with :
2334 luaVersion : ${{ matrix.lua-version }}
@@ -33,15 +44,24 @@ jobs:
3344 # install luacov-coveralls, but avoid installing luafilesystem
3445 luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
3546
36- - name : Build
47+ - name : Unix Build
48+ if : ${{ matrix.os != 'windows-latest' }}
3749 run : |
3850 luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="${{ matrix.libflag }}"
3951
52+ - name : Windows Build
53+ # TODO Windows coverage
54+ if : ${{ matrix.os == 'windows-latest' }}
55+ run : |
56+ luarocks make
57+
4058 - name : Test
4159 run : |
4260 lua -lluacov tests/test.lua
4361
4462 - name : Coverage
63+ # TODO Windows coverage
64+ if : ${{ matrix.os != 'windows-latest' }}
4565 run : |
4666 export MY_PYTHON_VER=$(python -c 'import sys; print(".".join(sys.version.split(".")[0:2]))')
4767 export PATH="/Users/runner/Library/Python/$MY_PYTHON_VER/bin:$PATH"
You can’t perform that action at this time.
0 commit comments