[pull] master from gp-alex:master #1300
This file contains hidden or 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: Style | |
on: | |
pull_request: null | |
push: null | |
workflow_dispatch: | |
inputs: | |
myCommit: | |
description: Commit SHA1 | |
required: false | |
default: '' | |
type: string | |
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}}' | |
# OE builds with lld and with mold, and configure step fails if one is not found. We don't need the linker for | |
# the style checks, but it's easier to just install it than work this around in CMakeLists. | |
- name: Install mold | |
uses: rui314/setup-mold@v1 | |
with: | |
mold-version: 2.36.0 | |
make-default: false | |
- 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 |