-
-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (44 loc) · 1.29 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Check
on:
push:
branches:
- main
- 'renovate/**'
paths:
- .github/workflows/check.yml
- fenster-dev-1.rockspec
- 'src/**'
pull_request:
branches:
- main
paths:
- .github/workflows/check.yml
- fenster-dev-1.rockspec
- 'src/**'
workflow_dispatch:
jobs:
test-build:
name: Test Build
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
lua_version: [ '5.1', '5.2', '5.3', '5.4', 'luajit' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# This will be ignored on platforms other than Windows
- name: Setup Microsoft Visual C++ Developer Command Prompt
uses: ilammy/[email protected]
- name: Setup Lua
uses: leafo/[email protected]
with:
luaVersion: ${{ matrix.lua_version }}
- name: Setup LuaRocks
uses: hishamhm/gh-actions-luarocks@master
with:
luarocksVersion: 3.11.0
- name: Run luarocks build
run: luarocks && luarocks config && luarocks build
- name: Run basic test
run: lua -e "require('luarocks.loader');local fenster = require('fenster');print(fenster.time())"