Skip to content

lint.yml: download LuaLS instead of building it #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 6 additions & 27 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# This is a basic workflow to help you get started with Actions

name: Lint

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
Expand All @@ -13,17 +8,11 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Build_LuaLS:
# The type of runner that the job will run on
runs-on: ubuntu-latest

outputs:
luals_version: ${{ steps.get-luaLS-version.outputs.version }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Get LuaLS version
id: get-luaLS-version
Expand All @@ -40,28 +29,20 @@ jobs:
key: ${{ steps.get-luaLS-version.outputs.version }}
path: ./luals

- uses: actions/checkout@v4
- name: Download LuaLS
uses: robinraju/release-downloader@v1
if: steps.cache.outputs.cache-hit != 'true'
with:
repository: LuaLS/lua-language-server
ref: ${{ steps.get-luaLS-version.outputs.version }}
path: ./luals

# Runs a single command using the runners shell
- name: Install Lua Language Server
if: steps.cache.outputs.cache-hit != 'true'
working-directory: ./luals
run: |
echo Running Lua Language Server build script
sudo apt-get update
sudo apt-get -y install ninja-build
./make.sh
tag: ${{ steps.get-luaLS-version.outputs.version }}
fileName: '*-linux-x64.tar.gz'
extract: true
out-file-path: ./luals

Lint_LuaJit:
needs: Build_LuaLS
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
path: ./file-browser
Expand All @@ -81,7 +62,6 @@ jobs:
needs: Build_LuaLS
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
path: ./file-browser
Expand All @@ -101,7 +81,6 @@ jobs:
needs: Build_LuaLS
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
path: ./file-browser
Expand Down