Mercurial > p > roundup > code
comparison .github/workflows/ci-test.yml @ 7945:1c5176f192cb
test: see if xapian will build with 3.13beta1
isue2551338 xapian doesn't build in CI for 3.13 python
Also add an if: clause (looking for 3.14 so 3.13 will build).
If xapian fails to build the if: clause will allow me to skip
download/unpack and configure for this step saving runtime.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 12 May 2024 18:26:46 -0400 |
| parents | 84618675db21 |
| children | 7a98b308cdfd |
comparison
equal
deleted
inserted
replaced
| 7944:0b80d1e8c803 | 7945:1c5176f192cb |
|---|---|
| 222 pip install zstd || true | 222 pip install zstd || true |
| 223 if [[ "$PYTHON_VERSION" != "2."* ]]; then | 223 if [[ "$PYTHON_VERSION" != "2."* ]]; then |
| 224 pip install Markdown; fi | 224 pip install Markdown; fi |
| 225 | 225 |
| 226 - name: Install xapian | 226 - name: Install xapian |
| 227 if: matrix.python-version != '3.14' | |
| 227 run: | | 228 run: | |
| 228 set -xv | 229 set -xv |
| 229 sudo apt-get install libxapian-dev | 230 sudo apt-get install libxapian-dev |
| 230 # Sphinx required to build the xapian python bindings. Use 1.8.5 on | 231 # Sphinx required to build the xapian python bindings. Use 1.8.5 on |
| 231 # older python and newest on newer. | 232 # older python and newest on newer. |
| 252 -e '/PYTHON3_CACHE_OPT1_EXT=/s/imp\b/importlib/g' \ | 253 -e '/PYTHON3_CACHE_OPT1_EXT=/s/imp\b/importlib/g' \ |
| 253 configure; \ | 254 configure; \ |
| 254 diff -u configure.FCS configure || true; \ | 255 diff -u configure.FCS configure || true; \ |
| 255 ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; \ | 256 ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; \ |
| 256 fi | 257 fi |
| 257 case "$PYTHON_VERSION" in "3.13") echo skipping xapian build;; *) make && sudo make install; esac | 258 case "$PYTHON_VERSION" in "3.14") echo skipping xapian build;; *) make && sudo make install; esac |
| 258 | 259 |
| 259 - name: Test build roundup and install locale so lang tests work. | 260 - name: Test build roundup and install locale so lang tests work. |
| 260 run: | | 261 run: | |
| 261 sudo apt-get install gettext | 262 sudo apt-get install gettext |
| 262 python setup.py build | 263 python setup.py build |
