Skip to content

ci: fix Windows tests + enable for PRs #73

ci: fix Windows tests + enable for PRs

ci: fix Windows tests + enable for PRs #73

Workflow file for this run

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: luajit
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'