ci: fix Windows tests + enable for PRs #70
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
lua: ["5.1", "5.2", "5.3", "5.4", "luajit"] | ||
exclude: | ||
- lua: juajit | ||
os: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install MSVC Compiler Toolchain | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
if: runner.os == 'Windows' | ||
- name: Install Lua | ||
uses: leafo/gh-actions-lua@v10 | ||
with: | ||
luaVersion: ${{ matrix.lua }} | ||
- name: Install Luarocks | ||
# NOTE: This is a fork with Windows support | ||
uses: hishamhm/gh-actions-luarocks@master | ||
- name: Build | ||
run: | | ||
luarocks make | ||
- name: Test | ||
run: | | ||
luarocks test | ||
# FIXME: There seems to be a bug causing busted | ||
# to fail on Windows, because it can't find LuaFileSystem | ||
if: runner.os != 'Windows' |