Skip to content

Commit d1d2206

Browse files
DLWoodruffclaude
andauthored
CI: install openssl from conda-forge before gamspy in test-agnostic job (#615)
* CI: install openssl from conda-forge before gamspy in test-agnostic job Recent gamspy_base releases link against OpenSSL 3.2+, but the ubuntu-latest runner ships OpenSSL 3.0.x (Ubuntu 22.04), causing a runtime failure: GamsException: Could not load libjoatdclib64.so: version 'OPENSSL_3.2.0' not found Installing openssl from conda-forge puts a new enough libssl.so.3 on the conda LD_LIBRARY_PATH before gamspy is installed, satisfying the versioned-symbol requirement and unblocking all open PRs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * CI: also set LD_LIBRARY_PATH so conda's OpenSSL takes priority conda does not automatically add its lib dir to LD_LIBRARY_PATH, so the system linker still found the system libssl.so.3 (OpenSSL 3.0.x) first, even after installing a newer openssl from conda-forge. Exporting CONDA_PREFIX/lib at the front of LD_LIBRARY_PATH ensures the conda-forge OpenSSL (which provides OPENSSL_3.2.0) is found before the system one when gamspy loads its native shared library. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c8fa551 commit d1d2206

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test_pr_and_main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,8 @@ jobs:
538538
pip install numpy packaging
539539
python -m pip install amplpy --upgrade
540540
python -m amplpy.modules install highs cbc gurobi
541+
conda install -c conda-forge openssl
542+
echo "LD_LIBRARY_PATH=${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH:-}" >> $GITHUB_ENV
541543
python -m pip install gamspy
542544
python -m pip install mip
543545
# license?

0 commit comments

Comments
 (0)