summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-21 13:37:28 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-21 13:37:28 +0100
commit9aff970204234193045cfee205d51e2393e93bfd (patch)
tree1d5b14ac28c62e641ce6b473cde6c5282ce1faaa
parent8c9d98a8af5351a3ac98cf11dede9f0268461511 (diff)
patch 8.2.2175: github actions: clang-11 handling suboptimalv8.2.2175
Problem: Github actions: clang-11 handling suboptimal. Solution: Separate step of installing clang-11. Get ubuntu release name dynamically. (Ozaki Kiichi, closes #7514)
-rw-r--r--.github/workflows/ci.yml29
-rw-r--r--src/version.c2
2 files changed, 18 insertions, 13 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 25ac92f5dc..2a1a218bb4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,6 +17,7 @@ jobs:
LOG_DIR: ${{ github.workspace }}/logs
TERM: xterm
DISPLAY: ':99'
+ DEBIAN_FRONTEND: noninteractive
strategy:
fail-fast: false
@@ -54,8 +55,6 @@ jobs:
- uses: actions/checkout@v2
- name: Install packages
- env:
- DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install -y \
autoconf \
@@ -73,14 +72,17 @@ jobs:
libgtk2.0-dev \
desktop-file-utils \
libtool-bin
- if [[ ${CC} = clang ]]; then
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo add-apt-repository -y "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main"
- sudo apt-get install -y clang-11
- sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100
- sudo update-alternatives --set clang /usr/bin/clang-11
- sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-11 100
- fi
+
+ - name: Install clang-11
+ if: matrix.compiler == 'clang'
+ run: |
+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
+ . /etc/lsb-release
+ sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-11 main"
+ sudo apt-get install -y clang-11
+ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100
+ sudo update-alternatives --set clang /usr/bin/clang-11
+ sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-11 100
- name: Set up environment
run: |
@@ -177,9 +179,8 @@ jobs:
run: |
./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing
# Append various warning flags to CFLAGS.
- # BSD sed needs backup extension specified.
- sed -i.bak -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
- sed -i.bak -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk
+ sed -i -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
+ sed -i -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk
- name: Build
if: (!contains(matrix.extra, 'unittests'))
@@ -291,6 +292,8 @@ jobs:
sed -i.bak -f ci/config.mk.clang.sed ${SRCDIR}/auto/config.mk
- name: Build
+ env:
+ LANG: C
run: |
make -j${NPROC}
diff --git a/src/version.c b/src/version.c
index 395db11ec5..e9c65bca54 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2175,
+/**/
2174,
/**/
2173,