aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-03-25 01:32:08 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-03-25 01:32:08 -0400
commit0022e1863d8d9769378ebfb56695bdbf55f118b9 (patch)
tree1ad764d54ccdaa6915b24ff6aa67fb833ba48499
parentb0d300e788571f48e95d6e673c6f94e54d1dd355 (diff)
downloadmeson-0022e1863d8d9769378ebfb56695bdbf55f118b9.zip
meson-0022e1863d8d9769378ebfb56695bdbf55f118b9.tar.gz
meson-0022e1863d8d9769378ebfb56695bdbf55f118b9.tar.bz2
cygwin CI: work around gcovr bug
Due to https://github.com/gcovr/gcovr/pull/576 it is not possible to `pip install gcovr` and have it work. It is possible, but not ideal, to install the cygwin gcovr package, which is unmaintained and built for python36 while only depending on python39. This is of course not a problem on the other CI jobs, where we either install it from a distro repository that ensures it is stable and backports patches, or simply tests that the resulting image passes tests before baking it as a CI images update. gcovr upstream isn't sure when they are going to release a new version that fixes this bug. There is a new feature release scheduled "soon".
-rw-r--r--.github/workflows/cygwin.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml
index da048b2..173068a 100644
--- a/.github/workflows/cygwin.yml
+++ b/.github/workflows/cygwin.yml
@@ -71,6 +71,12 @@ jobs:
vala
zlib-devel
+ - name: work around gcovr bug https://github.com/gcovr/gcovr/pull/576
+ run: |
+ export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32
+ python3 -m pip --disable-pip-version-check install 'jinja2<3.1.0'
+ shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'
+
- name: Run pip
run: |
export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32