Skip to content

Commit

Permalink
Merge pull request #16 from rte-france/fix/oracle
Browse files Browse the repository at this point in the history
Fix/oracle
  • Loading branch information
sgatto authored Sep 20, 2024
2 parents 160bbcf + 895af85 commit 3698820
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
container: 'oraclelinux:8'
env:
SIRIUS_RELEASE_TAG: antares-integration-v1.4
SWIG_BASE_NAME: swig-4.2.1
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -66,20 +67,24 @@ jobs:
dnf -y install pcre-devel
dnf clean all
rm -rf /var/cache/dnf
wget -q "https://downloads.sourceforge.net/project/swig/swig/swig-4.1.1/swig-4.1.1.tar.gz"
tar xvf swig-4.1.1.tar.gz
rm swig-4.1.1.tar.gz
cd swig-4.1.1
wget -q "https://downloads.sourceforge.net/project/swig/swig/${{ env.SWIG_BASE_NAME }}/${{ env.SWIG_BASE_NAME }}.tar.gz"
tar xvf ${{ env.SWIG_BASE_NAME }}.tar.gz
rm ${{ env.SWIG_BASE_NAME }}.tar.gz
cd ${{ env.SWIG_BASE_NAME }}
./configure --prefix=/usr
make -j 4
make install
cd ..
rm -rf swig-4.1.1
rm -rf swig-4.2.1
- name: Install java (jdk)
if: ${{ matrix.cmake.java == 'ON' }}
run: |
dnf -y update
dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel maven
dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel
wget https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
mkdir /usr/local/maven
tar xzf apache-maven-3.8.8-bin.tar.gz -C /usr/local/maven/ --strip-components=1
echo "/usr/local/maven/bin/" >> $GITHUB_PATH
dnf clean all
rm -rf /var/cache/dnf
- name: Install python
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/windows-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,18 @@ jobs:

- name: Install python3
run: python3 -m pip install --user mypy-protobuf absl-py setuptools wheel numpy pandas
- name: Add Python binaries to path
run: >
echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Apply patch
shell: bash
run: |
cp -r patch/ortools patch/patch.py patch/patch_utils.py patch/cmake_patches .
python patch.py
- name: Install SWIG 4.1.1
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.1.1.zip","swigwin-4.1.1.zip");
Expand-Archive .\swigwin-4.1.1.zip .;
echo "$((Get-Item .).FullName)/swigwin-4.1.1" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Remove-Item .\swigwin-4.1.1.zip
- name: Check swig
run: swig -version
- name: Add Python binaries to path Windows
run: >
echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Set-up Xpress with pip
shell: bash
run: |
Expand Down Expand Up @@ -127,6 +119,7 @@ jobs:
-v -j2
- name: Tests not xpress
continue-on-error: true # TODO reactivate when fixed on google/or-tools
working-directory: ./build/
run: >
ctest -C Release
Expand Down

0 comments on commit 3698820

Please sign in to comment.