forked from OpenEnroth/OpenEnroth
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (53 loc) · 1.48 KB
/
style.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
60
61
62
name: Style
on:
pull_request: null
workflow_dispatch:
inputs:
myCommit:
description: Commit SHA1
required: false
default: ''
type: string
push: null
release:
types:
- published
env:
LLS_TAG: '3.9.1'
jobs:
check_style:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
ref: '${{inputs.myCommit}}'
- name: Restore cached lua-language-server
id: lls-cache
uses: actions/cache@v4
with:
path: 'lua-language-server/build/bin'
key: 'lls-cache-${{env.LLS_TAG}}'
- name: Checkout lua-language-server
if: steps.lls-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: 'LuaLS/lua-language-server'
path: 'lua-language-server'
ref: '3.9.1'
- name: Install ninja-build
if: steps.lls-cache.outputs.cache-hit != 'true'
uses: seanmiddleditch/gha-setup-ninja@v4
- name: Build lua-language-server
if: steps.lls-cache.outputs.cache-hit != 'true'
working-directory: lua-language-server
run: |
./make.sh
- name: Configure
run: |
cmake -B build -DOE_USE_DUMMY_DEPENDENCIES=ON -DOE_LLS_COMMAND=./lua-language-server/build/bin/lua-language-server
- name: Check style
working-directory: build
run: |
make check_style