Skip to content

CI Test on Windows (Mingw64) #55

CI Test on Windows (Mingw64)

CI Test on Windows (Mingw64) #55

Workflow file for this run

name: mingw
on: [push, pull_request]
jobs:
msys2-mingw64:
strategy:
fail-fast: false
matrix:
lua: [{name: "lua51", exe: "lua5.1.exe", version: 5.1, incdir: "/mingw64/include/lua5.1/"},
{name: "lua53", exe: "lua5.3.exe", version: 5.3, incdir: "/mingw64/include/lua5.3/"},
{name: "lua", exe: "lua5.4.exe", version: 5.4, incdir: "/mingw64/include/"},
{name: "luajit", exe: "luajit.exe", version: 5.1, incdir: "/mingw64/include/luajit-2.1/"}]
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git
make
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-libvips
mingw-w64-x86_64-openslide
mingw-w64-x86_64-libheif
mingw-w64-x86_64-libjxl
mingw-w64-x86_64-imagemagick
mingw-w64-x86_64-poppler
mingw-w64-x86_64-lua-luarocks
mingw-w64-x86_64-${{ matrix.lua.name }}
- if: matrix.lua.name == 'lua51'
name: Install bitop
run: |
pacman --noconfirm -S mingw-w64-x86_64-lua51-bitop
- name: Lua dependencies
run: |
luarocks config --scope system lua_version ${{ matrix.lua.version }}
luarocks config --scope system variables.LUA_DIR /mingw64/bin
luarocks config --scope system variables.LUA_INCDIR ${{ matrix.lua.incdir }}
make dev
if [[ ${{ matrix.lua.exe }} == lua5* ]]; then make ffi; fi
- name: Add to PATH
run: |
echo $RUNNER_TEMP/msys64/mingw64/bin:$HOME/.luarocks/bin >> $GITHUB_PATH
- name: Lint with luacheck
run: |
make lint
- name: Busted tests
run: |
make test