mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
ci: use shell script to deduplicate workflow (#21079)
This commit is contained in:
parent
9d8dbd9846
commit
5c52971f60
19
.github/scripts/install_deps_ubuntu.sh
vendored
Executable file
19
.github/scripts/install_deps_ubuntu.sh
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
PACKAGES=(
|
||||
autoconf
|
||||
automake
|
||||
build-essential
|
||||
cmake
|
||||
cpanminus
|
||||
curl
|
||||
gettext
|
||||
libtool-bin
|
||||
locales-all
|
||||
ninja-build
|
||||
pkg-config
|
||||
unzip
|
||||
)
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y "${PACKAGES[@]}"
|
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -31,18 +31,8 @@ jobs:
|
||||
|
||||
- name: Install apt packages
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
autoconf \
|
||||
automake \
|
||||
build-essential \
|
||||
cmake \
|
||||
gettext \
|
||||
libtool-bin \
|
||||
locales \
|
||||
lua-check \
|
||||
ninja-build \
|
||||
pkg-config
|
||||
./.github/scripts/install_deps_ubuntu.sh
|
||||
sudo apt-get install -y lua-check
|
||||
|
||||
- name: Cache uncrustify
|
||||
id: cache-uncrustify
|
||||
@ -136,31 +126,22 @@ jobs:
|
||||
- name: Install apt packages
|
||||
run: |
|
||||
sudo add-apt-repository ppa:neovim-ppa/stable
|
||||
sudo apt-get update
|
||||
./.github/scripts/install_deps_ubuntu.sh
|
||||
sudo apt-get install -y \
|
||||
autoconf \
|
||||
automake \
|
||||
build-essential \
|
||||
cmake \
|
||||
gettext \
|
||||
libluajit-5.1-dev \
|
||||
libmsgpack-dev \
|
||||
libtermkey-dev \
|
||||
libtool-bin \
|
||||
libtree-sitter-dev \
|
||||
libunibilium-dev \
|
||||
libuv1-dev \
|
||||
libvterm-dev \
|
||||
locales \
|
||||
lua-busted \
|
||||
lua-filesystem \
|
||||
lua-inspect \
|
||||
lua-lpeg \
|
||||
lua-luv-dev \
|
||||
lua-nvim \
|
||||
luajit \
|
||||
ninja-build \
|
||||
pkg-config
|
||||
luajit
|
||||
|
||||
- uses: ./.github/actions/cache
|
||||
|
||||
@ -232,9 +213,7 @@ jobs:
|
||||
|
||||
- name: Install apt packages
|
||||
if: matrix.os == 'linux'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y autoconf automake build-essential cmake cpanminus gcc-multilib gdb gettext language-pack-tr libtool-bin locales ninja-build pkg-config python3 python3-pip python3-setuptools unzip valgrind xclip
|
||||
run: ./.github/scripts/install_deps_ubuntu.sh
|
||||
|
||||
- name: Install minimum required version of cmake
|
||||
if: matrix.cmake == 'minimum_required'
|
||||
|
4
.github/workflows/codeql.yml
vendored
4
.github/workflows/codeql.yml
vendored
@ -26,9 +26,7 @@ jobs:
|
||||
run: ./.github/workflows/env.sh
|
||||
|
||||
- name: Install apt packages
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y autoconf automake build-essential cmake cpanminus gcc-multilib gdb gettext language-pack-tr libtool-bin locales ninja-build pkg-config python3 python3-pip python3-setuptools unzip valgrind xclip
|
||||
run: ./.github/scripts/install_deps_ubuntu.sh
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
|
Loading…
Reference in New Issue
Block a user