-
Notifications
You must be signed in to change notification settings - Fork 2
95 lines (83 loc) · 2.7 KB
/
test-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: test-windows
on: [push, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [windows-latest]
luaVersion: ["5.4"]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: msys2 {0}
steps:
- shell: cmd
run: git config --global core.autocrlf input
- uses: actions/checkout@master
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
pacboy: >-
binutils:
patch:
zip:
unzip:
cc:p
libltdl:p
libtool:p
pkgconf:p
autotools:p
lua:p
cairo:p
- name: setup-luarocks
shell: msys2 {0}
run: |
uname -a
pwd
echo "-----------------------------------------------------------"
echo "-- Workaround for msys2-luarocks bug, "
echo "-- see: https://github.com/msys2/MINGW-packages/pull/12002 "
echo "-----------------------------------------------------------"
cd .github/workflows/mingw-w64-lua-luarocks
makepkg-mingw -isCf --noconfirm
cd -
echo "-----------------------------------------------------------"
type lua
type luarocks
lua -v
luarocks
luarocks install luafilesystem
- name: setup-lwtk
shell: msys2 {0}
run: |
luarocks install lpath
luarocks install oocairo
luarocks install https://luarocks.org/manifests/xavier-wang/luautf8-0.1.5-2.rockspec
luarocks --server=https://luarocks.org/dev install lpugl
luarocks --server=https://luarocks.org/dev install lpugl_cairo
luarocks --server=https://luarocks.org/dev install lpugl_opengl
echo "-----------------------------------------------------------"
luarocks make lwtk-scm-0.rockspec
echo "-----------------------------------------------------------"
- name: alltests
shell: msys2 {0}
run: |
set -e
lua -v
echo "-----------------------------------------------------------"
lua src/alltests.lua src/tests
echo "-----------------------------------------------------------"
- name: doctest
shell: msys2 {0}
run: |
set -e
lua -v
cd src
lua -e 'print("package.path=", package.path)'
export LUA_PATH='.\?.lua;.\?\init.lua;'"$(lua -e 'print(package.path)')"
echo "LUA_PATH=$LUA_PATH"
lua -e 'print("package.path=", package.path)'
echo "-----------------------------------------------------------"
lua doctest.lua
echo "-----------------------------------------------------------"