ci: install dependencies with a single script (#22241)

It's easier if the os-specific installations are done by the script itself
This commit is contained in:
dundargoc
2023-02-12 22:09:10 +01:00
committed by GitHub
parent 5f72ab77bf
commit 5d3769ea23
5 changed files with 38 additions and 39 deletions

View File

@@ -40,9 +40,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install apt packages
- name: Install dependencies
run: |
./.github/scripts/install_deps_ubuntu.sh
cmake -P ./.github/scripts/install_dependencies.cmake
sudo apt-get install -y lua-check
- name: Cache uncrustify
@@ -129,10 +129,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install apt packages
- name: Install dependencies
run: |
sudo add-apt-repository ppa:neovim-ppa/stable
./.github/scripts/install_deps_ubuntu.sh
cmake -P ./.github/scripts/install_dependencies.cmake
sudo apt-get install -y \
libluajit-5.1-dev \
libmsgpack-dev \
@@ -224,15 +224,8 @@ jobs:
- name: Create log dir
run: mkdir -p "$LOG_DIR"
- name: Install apt packages
if: runner.os == 'Linux'
run: ./.github/scripts/install_deps_ubuntu.sh
- name: Install brew packages
if: runner.os == 'macOS'
run: |
brew update --quiet
brew install automake cpanminus ninja
- name: Install dependencies
run: cmake -D TEST_DEPS=ON -P ./.github/scripts/install_dependencies.cmake
- name: Setup interpreter packages
run: |
@@ -370,8 +363,8 @@ jobs:
- name: Set up environment
run: echo "$BIN_DIR" >> $GITHUB_PATH
- name: Install apt packages
run: ./.github/scripts/install_deps_ubuntu.sh
- name: Install dependencies
run: cmake -P ./.github/scripts/install_dependencies.cmake
- name: Install minimum required version of cmake
run: |

View File

@@ -17,8 +17,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install apt packages
run: ./.github/scripts/install_deps_ubuntu.sh
- name: Install dependencies
run: cmake -P ./.github/scripts/install_dependencies.cmake
- name: Initialize CodeQL
uses: github/codeql-action/init@v2

View File

@@ -11,9 +11,7 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake build-essential cmake gettext libtool-bin locales ninja-build pkg-config unzip
run: cmake -P ./.github/scripts/install_dependencies.cmake
- name: Download Coverity
run: |