Skip to content

Commit 46f0e73

Browse files
committed
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]
1 parent 5a458ef commit 46f0e73

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci-test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,17 @@ jobs:
222222
- name: Install auxiliary packages
223223
run: |
224224
sudo apt-get install swig gpgsm libgpgme-dev
225-
# required for pip install/build of gpg on ubuntu 24.04??
226-
sudo apt-get install libgpgme11t64 || true
227225
# pygments for markdown2 to highlight code blocks
228226
pip install markdown2 pygments
229227
# docutils for ReStructuredText
230-
pip install beautifulsoup4 brotli docutils gpg jinja2 \
228+
pip install beautifulsoup4 brotli docutils jinja2 \
231229
mistune==0.8.4 pyjwt pytz whoosh
230+
# gpg doesn't build on Ubuntu 24.04. Ignore failure on that
231+
# platform only. Grep os-release to cover matrix.os in
232+
# [ubunutu-latest, ubuntu-24.04].
233+
pip install gpg || ( save_status=$?; \
234+
if grep 24.04 /etc/os-release > /dev/null; then \
235+
exit 0; else exit $save_status; fi; )
232236
233237
- name: Install aux packages that need versions differences
234238
# if zstd fails install, keep going with test, don't abort

0 commit comments

Comments
 (0)