CI: use hishamhm/gh-actions-lua for LuaJIT rolling release #337
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: ci | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: master | |
jobs: | |
Test: | |
strategy: | |
matrix: | |
lua-version: ["5.4", "5.3", "5.2", "5.1", "luajit"] | |
os: ["ubuntu-latest"] | |
include: | |
- os: "macos-latest" | |
lua-version: "5.4" | |
- os: "windows-latest" | |
lua-version: "luajit" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@master | |
- uses: hishamhm/gh-actions-lua@master | |
with: | |
luaVersion: ${{ matrix.lua-version }} | |
- uses: hishamhm/gh-actions-luarocks@master | |
- name: Build | |
run: | | |
luarocks make --only-deps | |
- name: Test | |
run: | | |
luarocks lint tl-dev-1.rockspec | |
make selfbuild | |
luarocks test |