Skip to content

github ci action: Workaround for msys2-luarocks bug not any longer ne… #11

github ci action: Workaround for msys2-luarocks bug not any longer ne…

github ci action: Workaround for msys2-luarocks bug not any longer ne… #11

Workflow file for this run

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
cairo:p
- name: setup-lua-luarocks
shell: msys2 {0}
run: |
uname -a
pwd
echo "-----------------------------------------------------------"
pacboy --noconfirm -Sy lua:p lua-luarocks:p
echo "-----------------------------------------------------------"
type lua
type luarocks
echo "-----------------------------------------------------------"
lua -v
echo "-----------------------------------------------------------"
luarocks --version
echo "-----------------------------------------------------------"
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 "-----------------------------------------------------------"