Skip to content

Commit

Permalink
Merge branch 'release/9.8-rte1.0' into fix/use-fixtures-for-xpress-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sgatto committed Jan 15, 2024
2 parents 9f490be + 8ede55b commit e216950
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 27 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Install requirements (yum)
run: |
yum install -y epel-release
yum install -y git redhat-lsb-core make wget centos-release-scl scl-utils
yum install -y git redhat-lsb-core make wget centos-release-scl scl-utils python3
yum install -y devtoolset-9
- name: Setup cmake
uses: jwlawson/[email protected]
Expand All @@ -73,19 +73,17 @@ jobs:
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git -b ${BRANCH_NAME} .
- name: Checkout Xpress linux
uses: actions/checkout@v3
with:
repository: rte-france/xpress-mp
path: ${{ env.XPRESS_INSTALL_DIR }}
ref: "9.0b"
token: ${{ secrets.ACCESS_TOKEN }}

- name: set Xpress variables
- name: Set-up Xpress from wheel
run: |
cd ${{ env.XPRESS_INSTALL_DIR }}
echo "XPRESSDIR=$PWD" >> $GITHUB_ENV
echo "XPAUTH_PATH=$PWD/bin/xpauth.xpr" >> $GITHUB_ENV
python3 -m pip install --upgrade pip
mkdir xpress
cd xpress
python3 -m pip download --only-binary=:all: --python-version 310 "xpress>=9.2,<9.3"
unzip xpr*.whl
XPRESS_DIR=$PWD/xpress
echo "XPRESSDIR=$XPRESS_DIR" >> $GITHUB_ENV
echo "XPAUTH_PATH=$XPRESS_DIR/license/community-xpauth.xpr" >> $GITHUB_ENV
ln -s $XPRESS_DIR/lib/libxprs.so.42 $XPRESS_DIR/lib/libxprs.so
- name: Download Sirius
if : ${{ matrix.sirius == 'ON' }}
Expand All @@ -107,7 +105,7 @@ jobs:
-DBUILD_PYTHON=${{ matrix.python }} \
-DBUILD_JAVA=${{ matrix.java }} \
-DBUILD_DOTNET=${{ matrix.dotnet }} \
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED && 'OFF' || 'ON' }} \
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED == 'true' && 'OFF' || 'ON' }} \
-DBUILD_DEPS=ON \
-DUSE_SIRIUS=${{ matrix.sirius }} \
-Dsirius_solver_DIR="${{ env.SIRIUS_CMAKE_DIR }}" \
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
container: 'oraclelinux:8'
env:
SIRIUS_RELEASE_TAG: antares-integration-v1.4
XPRESS_INSTALL_DIR: xpressmp/
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -102,11 +101,11 @@ jobs:
- name: Set-up Xpress with pip
run: |
python3 -m pip install "xpress>=9.0,<9.1"
python3 -m pip install "xpress>=9.2,<9.3"
XPRESS_DIR=/usr/local/lib64/python3.9/site-packages/xpress
echo "XPRESSDIR=$XPRESS_DIR" >> $GITHUB_ENV
echo "XPAUTH_PATH=$XPRESS_DIR/license/community-xpauth.xpr" >> $GITHUB_ENV
ln -s $XPRESS_DIR/lib/libxprs.so.41 $XPRESS_DIR/lib/libxprs.so
ln -s $XPRESS_DIR/lib/libxprs.so.42 $XPRESS_DIR/lib/libxprs.so
- name: Download Sirius
if: ${{ matrix.sirius == 'ON' }}
Expand All @@ -128,7 +127,7 @@ jobs:
-DBUILD_PYTHON=${{ matrix.cmake.python }} \
-DBUILD_JAVA=${{ matrix.cmake.java }} \
-DBUILD_DOTNET=${{ matrix.cmake.dotnet }} \
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED && 'OFF' || 'ON' }} \
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED == 'true' && 'OFF' || 'ON' }} \
-DBUILD_DEPS=ON \
-DUSE_SIRIUS=${{ matrix.sirius }} \
-Dsirius_solver_DIR="${{ env.SIRIUS_CMAKE_DIR }}" \
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ jobs:
- name: Set-up Xpress with pip for Ubuntu
shell: bash
run: |
python -m pip install "xpress>=9.0,<9.1"
python -m pip install "xpress>=9.2,<9.3"
echo ${{ env.pythonLocation }}
XPRESS_DIR=${{ env.pythonLocation }}/lib/python${{ matrix.cmake.python-version }}/site-packages/xpress
echo "XPRESSDIR=$XPRESS_DIR" >> $GITHUB_ENV
echo "XPAUTH_PATH=$XPRESS_DIR/license/community-xpauth.xpr" >> $GITHUB_ENV
echo "Create symbolic link for XPRESS library file because it is missing in the Python installation"
ln -s $XPRESS_DIR/lib/libxprs.so.41 $XPRESS_DIR/lib/libxprs.so
ln -s $XPRESS_DIR/lib/libxprs.so.42 $XPRESS_DIR/lib/libxprs.so
- name: Download Sirius
if: ${{ matrix.sirius == 'ON' }}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
-DBUILD_PYTHON=${{ matrix.cmake.python }}
-DBUILD_JAVA=${{ matrix.cmake.java }}
-DBUILD_DOTNET=${{ matrix.cmake.dotnet }}
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED && 'OFF' || 'ON' }}
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED == 'true' && 'OFF' || 'ON' }}
-DBUILD_DEPS=ON
-DUSE_SIRIUS=${{ matrix.sirius }}
-Dsirius_solver_DIR="${{ env.SIRIUS_CMAKE_DIR }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Set-up Xpress with pip
shell: bash
run: |
python -m pip install --no-cache-dir "xpress>=9.0,<9.1"
python -m pip install --no-cache-dir "xpress>=9.2,<9.3"
XPRESS_DIR="${{ env.pythonLocation }}\Lib\site-packages\xpress"
cp -r $XPRESS_DIR/lib $XPRESS_DIR/bin
echo "XPRESSDIR=$XPRESS_DIR" >> $GITHUB_ENV
Expand All @@ -67,7 +67,7 @@ jobs:
cmake -S. -Bbuild
-DCMAKE_BUILD_TYPE=Release
-DBUILD_DEPS=ON
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED && 'OFF' || 'ON' }}
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED == 'true' && 'OFF' || 'ON' }}
-DBUILD_SAMPLES=OFF
-DCMAKE_INSTALL_PREFIX="install"
-DBUILD_FLATZINC=OFF
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-java-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Set-up Xpress with pip
shell: bash
run: |
python -m pip install --no-cache-dir "xpress>=9.0,<9.1"
python -m pip install --no-cache-dir "xpress>=9.2,<9.3"
XPRESS_DIR="${{ env.pythonLocation }}\Lib\site-packages\xpress"
cp -r $XPRESS_DIR/lib $XPRESS_DIR/bin
echo "XPRESSDIR=$XPRESS_DIR" >> $GITHUB_ENV
Expand All @@ -64,7 +64,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release
-DBUILD_JAVA=ON
-DBUILD_DOTNET=ON
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED && 'OFF' || 'ON' }}
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED == 'true' && 'OFF' || 'ON' }}
-DBUILD_CXX_SAMPLES=OFF
-DBUILD_SAMPLES=OFF
-DCMAKE_INSTALL_PREFIX="install"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Set-up Xpress with pip
shell: bash
run: |
python -m pip install --no-cache-dir "xpress>=9.0,<9.1"
python -m pip install --no-cache-dir "xpress>=9.2,<9.3"
XPRESS_DIR="${{ env.pythonLocation }}\Lib\site-packages\xpress"
cp -r $XPRESS_DIR/lib $XPRESS_DIR/bin
echo "XPRESSDIR=$XPRESS_DIR" >> $GITHUB_ENV
Expand All @@ -73,7 +73,7 @@ jobs:
-G "Visual Studio 17 2022"
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SAMPLES=OFF
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED && 'OFF' || 'ON' }}
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED == 'true' && 'OFF' || 'ON' }}
-DBUILD_CXX_SAMPLES=OFF
-DBUILD_PYTHON=ON
-DBUILD_SAMPLES=OFF
Expand Down

0 comments on commit e216950

Please sign in to comment.