mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ci: install stylua from their releases
It's quicker to grab the .zip file rather than using homebrew.
This commit is contained in:
parent
9f8f287c61
commit
b6b70ae199
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@ -35,13 +35,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Homebrew
|
|
||||||
uses: Homebrew/actions/setup-homebrew@master
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
run: ./.github/scripts/install_deps.sh
|
||||||
|
|
||||||
|
- name: Install stylua
|
||||||
run: |
|
run: |
|
||||||
./.github/scripts/install_deps.sh
|
URL=$(curl -L https://api.github.com/repos/JohnnyMorganz/StyLua/releases/latest | jq -r '.assets[] | select(.name == "stylua-linux-x86_64.zip") | .browser_download_url')
|
||||||
brew install stylua
|
wget --directory-prefix="$BIN_DIR" "$URL"
|
||||||
|
(cd "$BIN_DIR"; unzip stylua*.zip)
|
||||||
|
echo "$BIN_DIR" >> $GITHUB_PATH
|
||||||
|
|
||||||
- uses: ./.github/actions/cache
|
- uses: ./.github/actions/cache
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user