aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-29 15:43:54 +0200
committerGitHub <noreply@github.com>2023-04-29 15:43:54 +0200
commit933fdff4660a17b1df7809105c57825e0ece1fc6 (patch)
tree6e084d77fa7349179ff058a0559421f66b076c5b /.github/workflows
parent13a24b905e1646767fed908b8dbdb535a65414ab (diff)
downloadrneovim-933fdff4660a17b1df7809105c57825e0ece1fc6.tar.gz
rneovim-933fdff4660a17b1df7809105c57825e0ece1fc6.tar.bz2
rneovim-933fdff4660a17b1df7809105c57825e0ece1fc6.zip
ci: make install_deps.sh more flexible
This will allow us to use it in containers as well as specify whether we want to install test dependencies.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml5
-rw-r--r--.github/workflows/test.yml4
2 files changed, 3 insertions, 6 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ebf5df7aac..a07e1a098a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -39,10 +39,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- - name: Install dependencies
- run: |
- apt-get update
- apt-get install -y build-essential cmake gettext ninja-build unzip
+ - run: ./.github/scripts/install_deps.sh --container
- if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name != 'nightly')
run: |
echo 'NVIM_BUILD_TYPE=Release' >> $GITHUB_ENV
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 5352d6a6d8..5249b36f9a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -41,7 +41,7 @@ jobs:
- name: Install dependencies
run: |
- ./.github/scripts/install_deps.sh lua-check
+ ./.github/scripts/install_deps.sh
brew install stylua uncrustify
- uses: ./.github/actions/cache
@@ -141,7 +141,7 @@ jobs:
run: mkdir -p "$LOG_DIR"
- name: Install dependencies
- run: ./.github/scripts/install_deps.sh cpanminus
+ run: ./.github/scripts/install_deps.sh --test
- name: Setup interpreter packages
run: |