mirror of
https://github.com/0x5eal/semver-luau.git
synced 2024-12-12 15:00:36 +00:00
revert: go back to rokit as a toolchain manager
This commit is contained in:
parent
2dfdb7177c
commit
80d44923fa
6 changed files with 56 additions and 30 deletions
29
.github/actions/setup-pesde/action.yml
vendored
Normal file
29
.github/actions/setup-pesde/action.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Install pesde
|
||||
description: Installs pesde CLI and authenticates with the registry
|
||||
|
||||
inputs:
|
||||
pesde-token:
|
||||
description: "Token for publishing to the pesde registry"
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Download pesde
|
||||
shell: bash
|
||||
run: |
|
||||
latest_release=$(curl -s https://api.github.com/repos/pesde-pkg/pesde/releases | jq '[.[] | select(.prerelease == true or .prerelease == false)][0]')
|
||||
download_url=$(echo "$latest_release" | jq -r '.assets[] | select(.name | endswith("linux-x86_64.tar.gz")) | .browser_download_url')
|
||||
|
||||
curl -L -o /tmp/pesde.tar.gz "$download_url"
|
||||
tar -xzvf /tmp/pesde.tar.gz
|
||||
chmod +x pesde
|
||||
|
||||
./pesde self-install
|
||||
rm ./pesde
|
||||
echo "$HOME/.pesde/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Authenticate into pesde registry
|
||||
if: inputs.pesde-token != ''
|
||||
shell: bash
|
||||
run: pesde auth login --token "${{ inputs.pesde-token }}"
|
39
.github/workflows/ci.yml
vendored
39
.github/workflows/ci.yml
vendored
|
@ -16,12 +16,15 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pesde
|
||||
uses: 2jammers/setup-pesde@v0.2.0
|
||||
- name: Install tooling
|
||||
uses: CompeyDev/setup-rokit@v0.1.2
|
||||
with:
|
||||
lune-version: v0.8.9
|
||||
pesde-version: v0.5.0-rc.14
|
||||
token: ${{ secrets.PESDE_TOKEN }}
|
||||
cache: true
|
||||
|
||||
- name: Install pesde
|
||||
uses: ./.github/actions/setup-pesde
|
||||
with:
|
||||
pesde-token: ${{ secrets.PESDE_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: pesde install
|
||||
|
@ -36,12 +39,15 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pesde
|
||||
uses: 2jammers/setup-pesde@v0.2.0
|
||||
- name: Install tooling
|
||||
uses: CompeyDev/setup-rokit@v0.1.2
|
||||
with:
|
||||
lune-version: v0.8.9
|
||||
pesde-version: v0.5.0-rc.14
|
||||
token: ${{ secrets.PESDE_TOKEN }}
|
||||
cache: true
|
||||
|
||||
- name: Install pesde
|
||||
uses: ./.github/actions/setup-pesde
|
||||
with:
|
||||
pesde-token: ${{ secrets.PESDE_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: pesde install
|
||||
|
@ -59,12 +65,15 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pesde
|
||||
uses: 2jammers/setup-pesde@v0.2.0
|
||||
- name: Install tooling
|
||||
uses: CompeyDev/setup-rokit@v0.1.2
|
||||
with:
|
||||
lune-version: v0.8.9
|
||||
pesde-version: v0.5.0-rc.14
|
||||
token: ${{ secrets.PESDE_TOKEN }}
|
||||
cache: true
|
||||
|
||||
- name: Install pesde
|
||||
uses: ./.github/actions/setup-pesde
|
||||
with:
|
||||
pesde-token: ${{ secrets.PESDE_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: pesde install
|
||||
|
|
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
|
@ -13,11 +13,9 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pesde
|
||||
uses: 2jammers/setup-pesde@v0.2.0
|
||||
uses: ./.github/actions/setup-pesde
|
||||
with:
|
||||
lune-version: v0.8.9
|
||||
pesde-version: v0.5.0-rc.14
|
||||
token: ${{ secrets.PESDE_TOKEN }}
|
||||
pesde-token: ${{ secrets.PESDE_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: pesde install
|
||||
|
|
|
@ -4,11 +4,4 @@ local process = require("@lune/process")
|
|||
|
||||
local CommandBuilder = require("./exec")
|
||||
|
||||
process.exit(
|
||||
CommandBuilder.new("stylua")
|
||||
:withArg("--")
|
||||
:withArg(".")
|
||||
:withArgs(process.args)
|
||||
:withStdioStrategy("forward")
|
||||
:exec().code
|
||||
)
|
||||
process.exit(CommandBuilder.new("stylua"):withArg("."):withArgs(process.args):withStdioStrategy("forward"):exec().code)
|
||||
|
|
|
@ -6,7 +6,6 @@ local CommandBuilder = require("./exec")
|
|||
|
||||
process.exit(
|
||||
CommandBuilder.new("luau-lsp")
|
||||
:withArg("--")
|
||||
:withArg("analyze")
|
||||
:withArgs({ "--settings", ".vscode/settings.json" })
|
||||
:withArgs({ "--ignore", "'**/.pesde/**'" })
|
||||
|
|
|
@ -19,8 +19,6 @@ result = { name = "lukadev_0/result", version = "^1.2.0" }
|
|||
|
||||
[dev_dependencies]
|
||||
frktest = { name = "itsfrank/frktest", target = "lune", version = "^0.0.2" }
|
||||
stylua = { name = "pesde/stylua", version = "^2.0.1", target = "lune" }
|
||||
luau_lsp = { name = "pesde/luau_lsp", version = "^1.36.0", target = "lune" }
|
||||
|
||||
[indices]
|
||||
default = "https://github.com/daimond113/pesde-index"
|
||||
|
|
Loading…
Reference in a new issue