From 46f0e73b1de005f5ba66dedace4149fdda7139c2 Mon Sep 17 00:00:00 2001 From: John Rouillard Date: Sun, 10 Nov 2024 13:00:11 -0500 Subject: [PATCH] special case ignore gpg build - 24.04 ubuntu github action migration If gpg build fails and we are on 24.04, continue. This allows build to still fail if gpg build fails on another platform provided I have the script correct. I build gpg on 24.04 to make testing a fix/change to the underlying platform packages easy. In case an external change fixes it. [skip travis] --- .github/workflows/ci-test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index ec1bebfe..6b987bbf 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -222,13 +222,17 @@ jobs: - name: Install auxiliary packages run: | sudo apt-get install swig gpgsm libgpgme-dev - # required for pip install/build of gpg on ubuntu 24.04?? - sudo apt-get install libgpgme11t64 || true # pygments for markdown2 to highlight code blocks pip install markdown2 pygments # docutils for ReStructuredText - pip install beautifulsoup4 brotli docutils gpg jinja2 \ + pip install beautifulsoup4 brotli docutils jinja2 \ mistune==0.8.4 pyjwt pytz whoosh + # gpg doesn't build on Ubuntu 24.04. Ignore failure on that + # platform only. Grep os-release to cover matrix.os in + # [ubunutu-latest, ubuntu-24.04]. + pip install gpg || ( save_status=$?; \ + if grep 24.04 /etc/os-release > /dev/null; then \ + exit 0; else exit $save_status; fi; ) - name: Install aux packages that need versions differences # if zstd fails install, keep going with test, don't abort