ci: fix invalid workflow

Context variables aren't always available, so we can't rely on them for
e.g. environment variables.

Also merge all install scripts into `script/ci-install.sh`, that way it
can be called the same way regardless of system.
This commit is contained in:
dundargoc 2024-02-10 15:33:57 +01:00 committed by Christian Clason
parent 143a342bd8
commit 6444286cbf
8 changed files with 31 additions and 28 deletions

View file

@ -51,8 +51,8 @@ jobs:
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.cc }}
NVIM: ${{ runner.os == 'Windows' && 'nvim-win64\\bin\\nvim.exe' || 'nvim' }}
ALLOWED_INSTALLATION_FAILURES: ${{ runner.os == 'Windows' && 'rnoweb' }}
NVIM: ${{ matrix.os == 'windows-latest' && 'nvim-win64\\bin\\nvim.exe' || 'nvim' }}
ALLOWED_INSTALLATION_FAILURES: ${{ matrix.os == 'windows-latest' && 'rnoweb' }}
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
@ -65,7 +65,7 @@ jobs:
env:
NVIM_TAG: ${{ matrix.nvim_tag }}
run: |
bash ./scripts/ci-install-${{ matrix.os }}.sh
bash ./scripts/ci-install.sh
- name: Setup Parsers Cache
id: parsers-cache

View file

@ -44,7 +44,7 @@ jobs:
env:
NVIM_TAG: stable
run: |
bash ./scripts/ci-install-${{ matrix.os }}.sh
bash ./scripts/ci-install.sh
- name: Setup Parsers Cache
id: parsers-cache

View file

@ -27,7 +27,7 @@ jobs:
wget https://github.com/josephburnett/jd/releases/download/v1.7.1/jd-amd64-linux
mv jd-amd64-linux /tmp/jd
chmod +x /tmp/jd
bash scripts/ci-install-ubuntu-latest.sh
bash scripts/ci-install.sh
- name: Update parsers
env:

View file

@ -23,7 +23,7 @@ jobs:
env:
NVIM_TAG: stable
run: |
bash ./scripts/ci-install-ubuntu-latest.sh
bash ./scripts/ci-install.sh
- name: Check README
run: |