File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,22 @@ jobs:
13
13
- os : " macos-latest"
14
14
lua-version : " 5.4"
15
15
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"
16
21
runs-on : ${{ matrix.os }}
17
22
18
23
steps :
19
24
- uses : actions/checkout@master
20
25
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
+
21
32
- uses : luarocks/gh-actions-lua@master
22
33
with :
23
34
luaVersion : ${{ matrix.lua-version }}
@@ -33,15 +44,24 @@ jobs:
33
44
# install luacov-coveralls, but avoid installing luafilesystem
34
45
luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
35
46
36
- - name : Build
47
+ - name : Unix Build
48
+ if : ${{ matrix.os != 'windows-latest' }}
37
49
run : |
38
50
luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="${{ matrix.libflag }}"
39
51
52
+ - name : Windows Build
53
+ # TODO Windows coverage
54
+ if : ${{ matrix.os == 'windows-latest' }}
55
+ run : |
56
+ luarocks make
57
+
40
58
- name : Test
41
59
run : |
42
60
lua -lluacov tests/test.lua
43
61
44
62
- name : Coverage
63
+ # TODO Windows coverage
64
+ if : ${{ matrix.os != 'windows-latest' }}
45
65
run : |
46
66
export MY_PYTHON_VER=$(python -c 'import sys; print(".".join(sys.version.split(".")[0:2]))')
47
67
export PATH="/Users/runner/Library/Python/$MY_PYTHON_VER/bin:$PATH"
You can’t perform that action at this time.
0 commit comments