Skip to content

Commit

Permalink
CI Test on Windows (Mingw64)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Mar 21, 2024
1 parent 9da0288 commit 394a09f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: mingw

on: [push, pull_request]

jobs:
msys2-mingw64:
strategy:
fail-fast: false
matrix:
luaVersion: ["lua51", "lua53", "lua", "luajit"]

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-lua-luarocks mingw-w64-x86_64-${{ matrix.luaVersion }}
- name: Lua dependencies
run: |
make dev
if [[ ${{ matrix.luaVersion }} == lua5* ]]; then make ffi; fi
if [[ ${{ matrix.luaVersion }} == lua51 ]]; then make bit; fi
- name: Add to PATH
run: |
echo "C:\msys64\usr\bin;C:\msys64\mingw64\bin" >> $GITHUB_PATH
- name: Add Luarocks PATH
run: |
echo $GITHUB_PATH
echo $PATH
echo $GITHUB_WORKSPACE
- name: Lint with luacheck
run: |
make lint
- name: Busted tests
run: |
make test

0 comments on commit 394a09f

Please sign in to comment.