-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (46 loc) · 1.18 KB
/
lua.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
56
57
58
59
name: lua
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.23
id: go
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
# NTS: needs to be before the lua install because it overwrites the folder
- name: Check out code
uses: actions/checkout@v4
- name: Set up Lua 5.4.x
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4"
buildCache: false
- name: Set up luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Install Lua packages
run: |
luarocks install argparse
luarocks install luasocket
luarocks install luaunit
- name: Install Rust toolchain (for stylua)
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Install stylua
run: cargo install stylua --features lua54
- name: Build
run: make lua
- name: Test
run: make lua-test