Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/antares in memory #753

Merged
merged 173 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from 116 commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
9348afe
Encapsulate RunProblemGeneration in a class
JasonMarechal25 Oct 27, 2023
a7bab62
Refactor
JasonMarechal25 Nov 2, 2023
f1be1a0
Deduce archive name from xpansion output name
JasonMarechal25 Nov 2, 2023
cfb8814
Handle not deductible archive file name
JasonMarechal25 Nov 3, 2023
757750e
Move output and archive deduction in ProblemGenerationExeOptions
JasonMarechal25 Nov 3, 2023
0408426
Only use archive for run
JasonMarechal25 Jan 10, 2024
281f918
Fix build
JasonMarechal25 Jan 12, 2024
468f38f
wip
JasonMarechal25 Jan 12, 2024
3f31f71
--study options for pbgen
JasonMarechal25 Jan 15, 2024
0a63126
Minor cleanup
JasonMarechal25 Jan 17, 2024
e6bba95
destructor
JasonMarechal25 Jan 17, 2024
5fc8007
Use Lps in pbGen
JasonMarechal25 Jan 22, 2024
ee8e3f0
Use variables name in problems from Antares
JasonMarechal25 Jan 22, 2024
9b90b6b
Use problemName from Antares
JasonMarechal25 Jan 22, 2024
ae98609
Use "mode"
JasonMarechal25 Jan 22, 2024
9c3732d
Refactor test
JasonMarechal25 Jan 22, 2024
7736cbf
Add study for lpNamer e2e tests
JasonMarechal25 Jan 22, 2024
5d13f0e
Wip full run in memory
JasonMarechal25 Jan 23, 2024
ac6fb50
API and file work in -xpansion properly
JasonMarechal25 Jan 23, 2024
1945cc2
It works E2E
JasonMarechal25 Jan 24, 2024
2e8772e
Reintroduce files
JasonMarechal25 Jan 24, 2024
3bb38c0
Reintroduce files
JasonMarechal25 Jan 25, 2024
3e0ae17
Fix output mode renaming file instead of copying
JasonMarechal25 Jan 25, 2024
002a255
Ensure zip is clean for tests
JasonMarechal25 Jan 25, 2024
9bb2eef
Fix tests
JasonMarechal25 Jan 25, 2024
cf05426
Fix
JasonMarechal25 Jan 25, 2024
6d71d50
Use constraints name
JasonMarechal25 Jan 25, 2024
e939699
Don't write mps
JasonMarechal25 Jan 25, 2024
0957d99
Change the correct number of var/col name
JasonMarechal25 Jan 29, 2024
86a30dd
Round to 10
JasonMarechal25 Jan 31, 2024
665fe74
Init solver created by factory
JasonMarechal25 Feb 6, 2024
2a7ff36
Cleanup
JasonMarechal25 Feb 6, 2024
32d5242
Study mode: Output in simuilation dir, not -Xpansion dir
JasonMarechal25 Feb 6, 2024
7c0a8d9
Read variable names in whebdo data
JasonMarechal25 Feb 6, 2024
44734a3
Fix LPNamer test archive
JasonMarechal25 Feb 6, 2024
01f1044
Rename area and interco files to match reality
JasonMarechal25 Feb 7, 2024
9c6c8ee
Use parametrize to generate test combination automatically
JasonMarechal25 Feb 7, 2024
e2c9a6c
Execute lpname e2e tests in tmp directories
JasonMarechal25 Feb 7, 2024
caa6890
tidy code
JasonMarechal25 Feb 7, 2024
c8cc927
Restore unamed problem
JasonMarechal25 Feb 7, 2024
fec196e
Fix LPNamer e2e tests
JasonMarechal25 Feb 8, 2024
3f0676f
ADR: Memory, archive and file mode support
JasonMarechal25 Feb 9, 2024
0ddc68b
ADR: Nominal case in memory
JasonMarechal25 Feb 9, 2024
88586e4
Fix tests
JasonMarechal25 Feb 13, 2024
d5eb74b
remove locker
JasonMarechal25 Feb 13, 2024
4ed9607
Format Cmake
JasonMarechal25 Feb 13, 2024
5b2bcac
Fix post rebase
JasonMarechal25 Feb 13, 2024
59aa662
Fix test
JasonMarechal25 Feb 13, 2024
5f37342
f
JasonMarechal25 Feb 13, 2024
695b18d
Fix test
JasonMarechal25 Feb 13, 2024
9ceff72
Don't use antares step in drivers in memory mode
JasonMarechal25 Feb 20, 2024
9ff43db
Extract complexe code in meaningful method
JasonMarechal25 Feb 20, 2024
cf6c3ad
Remove useless code
JasonMarechal25 Feb 20, 2024
cdb799e
Re-enable parallelisation
JasonMarechal25 Feb 20, 2024
61d01f2
Fix various typo
JasonMarechal25 Feb 20, 2024
9e64a73
Remove superfluous solver.init
JasonMarechal25 Feb 20, 2024
6dc1361
Typo
JasonMarechal25 Feb 20, 2024
5904571
Typo
JasonMarechal25 Feb 20, 2024
bc4c424
Complete ADR: Explain why archive mode is still supported despite acc…
JasonMarechal25 Feb 20, 2024
e75f746
C4 architecture diagrams (#736)
JasonMarechal25 Feb 15, 2024
c8e80d6
[Pb Gen] deal with last study not being a zip (#756)
a-zakir Feb 22, 2024
f283c0d
Release 1.2.2 (#759)
JasonMarechal25 Feb 27, 2024
bd871df
ADR subproblem data storage (#760)
tbittar Feb 28, 2024
b3a9936
xpress licence in custom path (#758)
a-zakir Feb 29, 2024
aa355e7
Enable dependabot (#763)
JasonMarechal25 Feb 29, 2024
05e0260
deliver json cpp (#762)
JasonMarechal25 Feb 29, 2024
871b627
Produce only one asset (with xpress) (#764)
JasonMarechal25 Feb 29, 2024
f68c8d4
Bump bruceadams/get-release from 1.2.3 to 1.3.2 (#769)
dependabot[bot] Mar 5, 2024
71ba9ef
Bump actions/cache from 3 to 4 (#766)
dependabot[bot] Mar 6, 2024
5ee9e93
Bump actions/setup-python from 3 to 5 (#765)
dependabot[bot] Mar 6, 2024
f86c10e
Bump actions/checkout from 3 to 4 (#767)
dependabot[bot] Mar 6, 2024
662d028
Revert to checkout v3 for centOS (#772)
JasonMarechal25 Mar 6, 2024
e160302
[ANT-1224] Preparing loop around benders solver (#739)
a-zakir Mar 18, 2024
14f192a
Add high level design information (#757)
JasonMarechal25 Mar 22, 2024
b8e0396
Use vcpkg for dependency management on all platforms (#770)
JasonMarechal25 Mar 25, 2024
b152610
Fix sonar (#773)
JasonMarechal25 Apr 8, 2024
ded1dab
fix single file name (#785)
a-zakir Apr 8, 2024
9c2f1e2
fix xpress detection spam (#771)
a-zakir Apr 12, 2024
3f8e6ce
Feature/embed mpi (#786)
a-zakir Apr 12, 2024
3462b08
[ANT-1461] sensitivity study with unzipped outputs (#787)
a-zakir Apr 12, 2024
6ef3d0e
Bump tj-actions/branch-names from 6 to 8 (#774)
dependabot[bot] Apr 18, 2024
d367b25
Encapsulate RunProblemGeneration in a class
JasonMarechal25 Oct 27, 2023
757cbe4
Wip full run in memory
JasonMarechal25 Jan 23, 2024
30c4303
It works E2E
JasonMarechal25 Jan 24, 2024
b3e3fa0
Cleanup
JasonMarechal25 Feb 6, 2024
9dc499e
Update antares targets
JasonMarechal25 Apr 22, 2024
1cc95aa
Update antares API
JasonMarechal25 Apr 23, 2024
5bef82e
Fix rebase
JasonMarechal25 Apr 23, 2024
e6de016
Fix missing file
JasonMarechal25 Apr 24, 2024
4c57e2f
Fix
JasonMarechal25 Apr 24, 2024
ee686f9
Fix missing files
JasonMarechal25 Apr 24, 2024
1772d5b
Merge remote-tracking branch 'origin/develop' into feature/antares_in…
JasonMarechal25 Apr 25, 2024
fb70f92
fix
JasonMarechal25 Apr 26, 2024
b1baccd
Remove file
JasonMarechal25 May 16, 2024
a793b0c
Better handling of mode with switch
JasonMarechal25 May 16, 2024
320fa39
Extract method
JasonMarechal25 May 16, 2024
b2a4906
Extract method
JasonMarechal25 May 16, 2024
e6c98bd
Document
JasonMarechal25 May 16, 2024
c2a9239
Extract method
JasonMarechal25 May 16, 2024
fbb3e8a
Extract method
JasonMarechal25 May 16, 2024
23c9ef7
Extract method
JasonMarechal25 May 16, 2024
8c263cd
Reorder
JasonMarechal25 May 16, 2024
63db1e3
Simplify
JasonMarechal25 May 16, 2024
9eca5d8
typo
JasonMarechal25 May 16, 2024
6b542c8
Remove unused code
JasonMarechal25 May 16, 2024
132e1fa
Merge remote-tracking branch 'refs/remotes/origin/develop' into featu…
JasonMarechal25 May 21, 2024
43a28b1
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Jul 2, 2024
0be3097
Improve ADR
JasonMarechal25 Jul 2, 2024
3901ebb
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Jul 2, 2024
8f705e3
[API]Use antares lib (#825)
JasonMarechal25 Jul 25, 2024
789c826
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Jul 25, 2024
f166355
Try fix build
JasonMarechal25 Jul 25, 2024
88b2e3f
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Jul 31, 2024
0411b69
Fix build
JasonMarechal25 Jul 31, 2024
463a9ea
Update antares to 9.2.0-rc1
JasonMarechal25 Aug 1, 2024
0a21b13
Remove temporary trick for antares versions
JasonMarechal25 Aug 1, 2024
2afb6d6
Update ortools
JasonMarechal25 Aug 2, 2024
000e061
Update ortools
JasonMarechal25 Aug 2, 2024
f24d9d9
Fix data
JasonMarechal25 Aug 2, 2024
6bd53fe
Remove sirius port
JasonMarechal25 Aug 8, 2024
1c28acc
Fix Link when coin is not build
JasonMarechal25 Aug 8, 2024
e66ebb7
Don't force static build of coin. Avoid incompatibility issue with or…
JasonMarechal25 Aug 8, 2024
64b39e6
Download precompiled sirius
JasonMarechal25 Aug 9, 2024
776f2a1
Download precompiled sirius
JasonMarechal25 Aug 9, 2024
2dba990
Fix assets
JasonMarechal25 Aug 9, 2024
d97aac0
Fix assets
JasonMarechal25 Aug 9, 2024
50ec079
Fix assets
JasonMarechal25 Aug 9, 2024
8fd8281
Fix assets
JasonMarechal25 Aug 9, 2024
679d6c3
Fix windows
JasonMarechal25 Aug 9, 2024
c142820
Fix oracle
JasonMarechal25 Aug 9, 2024
2c03d9c
Fix windows
JasonMarechal25 Aug 9, 2024
5da8233
Fix windows
JasonMarechal25 Aug 9, 2024
042bcfd
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Aug 9, 2024
791dfef
Force don't build antares to debug why not detected
JasonMarechal25 Aug 12, 2024
644156e
Revert data
JasonMarechal25 Aug 19, 2024
9f85c05
Merge remote-tracking branch 'origin/develop' into feature/antares_in…
JasonMarechal25 Aug 19, 2024
646263e
Update ortools version
JasonMarechal25 Aug 19, 2024
30f3122
Update ortools
JasonMarechal25 Aug 19, 2024
60eea94
Don't use ortools with sirius asset
JasonMarechal25 Aug 21, 2024
7540cfd
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Aug 21, 2024
66e95e7
f
JasonMarechal25 Aug 21, 2024
be01d60
Ortools pre-release
JasonMarechal25 Aug 27, 2024
522b67e
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Aug 27, 2024
361607b
Update ortools
JasonMarechal25 Sep 3, 2024
3939b19
Use devtoolset 11
JasonMarechal25 Sep 3, 2024
e548185
f
JasonMarechal25 Sep 3, 2024
b831f10
f
JasonMarechal25 Sep 3, 2024
e432a76
f
JasonMarechal25 Sep 3, 2024
8e77cbe
f
JasonMarechal25 Sep 3, 2024
801bfae
f
JasonMarechal25 Sep 3, 2024
63e94f2
Fix missing key
JasonMarechal25 Sep 3, 2024
899353e
Revert data modifications
JasonMarechal25 Sep 3, 2024
4b4de93
Naming improvement
JasonMarechal25 Sep 3, 2024
d7b2ae5
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Sep 4, 2024
481a183
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Sep 4, 2024
d59edd9
Remove extra file
JasonMarechal25 Sep 4, 2024
eab1d8a
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Sep 4, 2024
276c05b
Fix merge
JasonMarechal25 Sep 5, 2024
4026911
Remove roundToTen
JasonMarechal25 Sep 5, 2024
c5748ae
Update ADR
JasonMarechal25 Sep 5, 2024
057eb22
Fix typo run-as-root
JasonMarechal25 Sep 5, 2024
1800dff
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Sep 6, 2024
f79826a
Test
JasonMarechal25 Sep 6, 2024
ea827ef
Updater xpress ref
JasonMarechal25 Sep 9, 2024
27e924a
Update reference mps
JasonMarechal25 Sep 9, 2024
5bcebc0
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Sep 9, 2024
f59ab8f
Better handling of SimulationMode unset value
JasonMarechal25 Sep 9, 2024
07bfd5e
Better error handling
JasonMarechal25 Sep 9, 2024
01caff5
Improve getXpansionProblems
JasonMarechal25 Sep 9, 2024
be03ffd
Simplification
JasonMarechal25 Sep 9, 2024
264b261
Fix build
JasonMarechal25 Sep 9, 2024
860c2e1
Merge branch 'develop' into feature/antares_in_memory
JasonMarechal25 Sep 11, 2024
7b07871
Fix build
JasonMarechal25 Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/build_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
XPRESS_CONTAINER: ${GITHUB_WORKSPACE}/xpress/bin
XPRS_LIB_Path_CONTAINER: ${GITHUB_WORKSPACE}/xpress/lib
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
ORTOOLS_DIR: $GITHUB_WORKSPACE/or-tools

outputs:
TGZ_NAME: ${{ steps.export_output.outputs.TGZ_NAME }}
Expand All @@ -95,7 +96,11 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'created'
id: get_release
uses: bruceadams/[email protected]


- name: Config OR-Tools URL
run: |
echo "ORTOOLS_URL=https://github.com/rte-france/or-tools/releases/download/v9.8-rte1.0/ortools_cxx_centos7_static_sirius.zip" >> $GITHUB_ENV
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be updated check that --> message


- uses: actions/checkout@v3 #Keep at 3
with:
submodules: true
Expand Down Expand Up @@ -124,7 +129,9 @@ jobs:
antares-version: ${{needs.versions.outputs.antares-version}}
os: centos7
os-full-name: CentOS-7.9.2009

ortools-url: ${{env.ORTOOLS_URL}}
ortools-dir: ${{env.ORTOOLS_DIR}}

- name: repo update
run: |
yum update
Expand Down Expand Up @@ -164,11 +171,12 @@ jobs:
source /opt/rh/devtoolset-10/enable
cmake -B _build -S . \
-DBUILD_TESTING=ON \
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/deps \
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/deps;${{env.ORTOOLS_DIR}}/install" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=_install \
-DBUILD_UI=ON \
-DALLOW_RUN_AS_ROOT=ON \
-DVCPKG_TARGET_TRIPLET=x64-linux-release \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake

- name: Build
Expand All @@ -187,7 +195,7 @@ jobs:
timeout-minutes: 120
shell: bash
run: |
export PATH=${GITHUB_WORKSPACE}/_build/vcpkg_installed/x64-linux/tools/openmpi/bin/:$PATH
export PATH=${GITHUB_WORKSPACE}/_build/vcpkg_installed/x64-linux-release/tools/openmpi/bin/:$PATH
export LD_LIBRARY_PATH=LD_LIBRARY_PATH:${{ env.XPRS_LIB_Path_CONTAINER }}
export XPRESS=${{ env.XPRESS_CONTAINER }}
cd _build
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/build_oracle8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
XPRESSDIR_CONTAINER: ${GITHUB_WORKSPACE}/xpress
XPRESS_CONTAINER: ${GITHUB_WORKSPACE}/xpress/bin
XPRS_LIB_Path_CONTAINER: ${GITHUB_WORKSPACE}/xpress/lib
ORTOOLS_DIR: $GITHUB_WORKSPACE/or-tools

outputs:
zip_name: ${{ steps.zip_name.outputs.zip_name }}
Expand All @@ -64,11 +65,15 @@ jobs:
- name: Install System
run: |
dnf install -y epel-release git wget rpm-build redhat-lsb-core
dnf install -y unzip libuuid-devel gcc-toolset-10-toolchain python3-devel zlib-devel
dnf install -y unzip libuuid-devel gcc-toolset-11 python3-devel zlib-devel
#make gcc &co available system wide and "action wide"
source /opt/rh/gcc-toolset-10/enable
source /opt/rh/gcc-toolset-11/enable
echo $PATH >> $GITHUB_PATH

- name: Config OR-Tools URL
run: |
echo "ORTOOLS_URL=https://github.com/rte-france/or-tools/releases/download/v9.8-rte1.0/ortools_cxx_oraclelinux-8_static_sirius.zip" >> $GITHUB_ENV

- run: |
dnf module install -y nodejs:20/common

Expand Down Expand Up @@ -104,6 +109,8 @@ jobs:
antares-version: ${{needs.versions.outputs.antares-version}}
os: Oracle8
os-full-name: OracleServer-8.10
ortools-url: ${{env.ORTOOLS_URL}}
ortools-dir: ${{env.ORTOOLS_DIR}}

- name: vcpkg install
run: |
Expand Down Expand Up @@ -131,9 +138,10 @@ jobs:
-DBUILD_TESTING=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=_install \
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/deps \
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/deps;${{env.ORTOOLS_DIR}}/install" \
-DBUILD_UI=OFF \
-DALLOW_RUN_AS_ROOT=ON \
-DVCPKG_TARGET_TRIPLET=x64-linux-release \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake

- name: Build
Expand All @@ -144,7 +152,7 @@ jobs:
timeout-minutes: 120
shell: bash
run: |
export PATH=${GITHUB_WORKSPACE}/_build/vcpkg_installed/x64-linux/tools/openmpi/bin/:$PATH
export PATH=${GITHUB_WORKSPACE}/_build/vcpkg_installed/x64-linux-release/tools/openmpi/bin/:$PATH
export LD_LIBRARY_PATH=LD_LIBRARY_PATH:${{ env.XPRS_LIB_Path_CONTAINER }}
export XPRESS=${{ env.XPRESS_CONTAINER }}
cd _build
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
XPRESS: ${{ github.workspace }}/xpress/bin
XPRS_LIB_Path: ${{ github.workspace }}/xpress/lib
VCPKG_BINARY_SOURCES: "clear;files,${{ github.workspace }}/vcpkg_cache,readwrite"
ORTOOLS_DIR: $GITHUB_WORKSPACE/or-tools

outputs:
TGZ_NAME: ${{ steps.export_output.outputs.TGZ_NAME }}
Expand Down Expand Up @@ -104,12 +105,18 @@ jobs:
path: 'antares-version.json'
key: 'antares_xpansion_version'

- name: Config OR-Tools URL
run: |
echo "ORTOOLS_URL=https://github.com/rte-france/or-tools/releases/download/v9.8-rte1.0/ortools_cxx_ubuntu-20.04_static_sirius.zip" >> $GITHUB_ENV

- name: Download pre-compiled librairies
uses: ./.github/workflows/download-extract-precompiled-libraries-tgz
with:
antares-version: ${{steps.antares-version.outputs.result}}
os: ${{matrix.os}}
os-full-name: Ubuntu-20.04
ortools-url: ${{env.ORTOOLS_URL}}
ortools-dir: ${{env.ORTOOLS_DIR}}

- name: vcpkg install
run: |
Expand Down Expand Up @@ -138,8 +145,9 @@ jobs:
-DBUILD_TESTING=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=_install \
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/deps \
-DCMAKE_PREFIX_PATH="${{ github.workspace }}/deps;${{env.ORTOOLS_DIR}}/install" \
-DBUILD_UI=ON \
-DVCPKG_TARGET_TRIPLET=x64-linux-release \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake

- name: Build
Expand All @@ -148,7 +156,7 @@ jobs:

- name: Test
run: |
export PATH=${GITHUB_WORKSPACE}/_build/vcpkg_installed/x64-linux/tools/openmpi/bin:$PATH
export PATH=${GITHUB_WORKSPACE}/_build/vcpkg_installed/x64-linux-release/tools/openmpi/bin/:$PATH
cd _build
ctest -C Release --output-on-failure -L "medium|unit|benders|lpnamer"

Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
# Indicates the location of the vcpkg as a Git submodule of the project repository.
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
VCPKG_BINARY_SOURCES: "clear;files,${{ github.workspace }}/vcpkg_cache,readwrite"
ORTOOLS_DIR: $GITHUB_WORKSPACE/or-tools

outputs:
zip_name: ${{ steps.zip_name.outputs.zip_name }}
Expand All @@ -42,6 +43,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Config OR-Tools URL
run: |
echo "ORTOOLS_URL=https://github.com/rte-france/or-tools/releases/download/v9.8-rte1.0/ortools_cxx_windows-latest_static_sirius.zip" >> $GITHUB_ENV

- name: Checkout xpressmp linux
if: matrix.xprs.value == 'XPRESS-ON'
uses: actions/checkout@v4
Expand Down Expand Up @@ -101,16 +106,31 @@ jobs:
# Allows to restore a cache when deps have only partially changed (like adding a dependency)
restore-keys: vcpkg-cache-windows-

- name: Config OR-Tools URL
shell: bash
run: |
echo "ORTOOLS_URL=https://github.com/rte-france/or-tools/releases/download/v9.8-rte1.0/ortools_cxx_windows-latest_static_sirius.zip" >> $GITHUB_ENV

- run: echo ${{env.ORTOOLS_URL}}
- name: Download pre-compiled librairies
uses: ./.github/workflows/download-extract-precompiled-libraries-zip
with:
antares-version: ${{steps.antares-version.outputs.result}}
os: ${{matrix.os}}
ortools-url: ${{env.ORTOOLS_URL}}
ortools-dir: ${{env.ORTOOLS_DIR}}

- name: Configure
shell: bash
run: |
$pwd=Get-Location
cmake -B _build -S . -DCMAKE_PREFIX_PATH="$pwd\rte-antares-${{steps.antares-version.outputs.result}}-installer-64bits" -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DCMAKE_INSTALL_PREFIX=_install -DBUILD_UI=ON
cmake -B _build -S . \
-DCMAKE_PREFIX_PATH="${{github.workspace}}/rte-antares-${{steps.antares-version.outputs.result}}-installer-64bits;${{env.ORTOOLS_DIR}}/install" \
-DBUILD_TESTING=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" \
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} \
-DCMAKE_INSTALL_PREFIX=_install \
-DBUILD_UI=ON

- name: Build
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,28 @@ inputs:
description: 'build type'
required: false
default: 'Release'
variant:
description: 'extra qualifiers'
required: false
default: ""
ortools-url:
description: 'URL for OR-Tools'
required: true
ortools-dir:
description: 'Destination directory for OR-Tools'
required: true
runs:
using: "composite"
steps:
- id: download-extract
- name: download-extract antares
shell: bash
run: |
mkdir -p deps
wget https://github.com/AntaresSimulatorTeam/Antares_Simulator/releases/download/v${{inputs.antares-version}}/antares-${{inputs.antares-version}}-${{inputs.os-full-name}}${{inputs.variant}}.tar.gz
tar -xvf antares-${{inputs.antares-version}}-${{inputs.os-full-name}}${{inputs.variant}}.tar.gz -C deps --strip-components=1
rm -rf antares-${{inputs.antares-version}}-${{inputs.os-full-name}}${{inputs.variant}}.tar.gz
wget https://github.com/AntaresSimulatorTeam/Antares_Simulator/releases/download/v${{inputs.antares-version}}/antares-${{inputs.antares-version}}-${{inputs.os-full-name}}.tar.gz
tar -xvf antares-${{inputs.antares-version}}-${{inputs.os-full-name}}.tar.gz -C deps --strip-components=1
rm -rf antares-${{inputs.antares-version}}-${{inputs.os-full-name}}.tar.gz

- name: Download & extract OR-Tools
shell: bash
run: |
mkdir -p ${{inputs.ortools-dir}}
cd ${{inputs.ortools-dir}}
wget ${{inputs.ortools-url}} -O ortools.zip
unzip ortools.zip
rm ortools.zip
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,28 @@ inputs:
description: 'extra qualifiers'
required: false
default: ""
ortools-url:
description: 'URL for OR-Tools'
required: true
ortools-dir:
description: 'Destination directory for OR-Tools'
required: true

runs:
using: "composite"
steps:
- id: download-extract
shell: bash
run: |
steps:
- id: download-extract
shell: bash
run: |
wget https://github.com/AntaresSimulatorTeam/Antares_Simulator/releases/download/v${{inputs.antares-version}}/rte-antares-${{inputs.antares-version}}-installer-64bits.zip
unzip rte-antares-${{inputs.antares-version}}-installer-64bits.zip
rm -rf rte-antares-${{inputs.antares-version}}-installer-64bits.zip

- name: Download & extract OR-Tools
shell: bash
run: |
mkdir "${{inputs.ortools-dir}}"
cd "${{inputs.ortools-dir}}"
wget ${{inputs.ortools-url}} -O ortools.zip
unzip ortools.zip
rm ortools.zip
10 changes: 9 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
os: [ ubuntu-20.04 ]
env:
VCPKG_BINARY_SOURCES: "clear;files,${{ github.workspace }}/vcpkg_cache,readwrite"
ORTOOLS_DIR: $GITHUB_WORKSPACE/or-tools

steps:

Expand Down Expand Up @@ -81,12 +82,19 @@ jobs:
path: 'antares-version.json'
key: 'antares_xpansion_version'

- name: Config OR-Tools URL
shell: bash
run: |
echo "ORTOOLS_URL=https://github.com/rte-france/or-tools/releases/download/v9.8-rte1.0/ortools_cxx_ubuntu-20.04_static_sirius.zip" >> $GITHUB_ENV

- name: Download pre-compiled librairies
uses: ./.github/workflows/download-extract-precompiled-libraries-tgz
with:
antares-version: ${{steps.antares-version.outputs.result}}
os: ${{matrix.os}}
os-full-name: Ubuntu-20.04
ortools-url: ${{env.ORTOOLS_URL}}
ortools-dir: ${{env.ORTOOLS_DIR}}

- name: Init submodule
run: |
Expand Down Expand Up @@ -118,7 +126,7 @@ jobs:
-DBUILD_TESTING=ON \
-DBUILD_antares_solver=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/deps \
-DCMAKE_PREFIX_PATH="${{ github.workspace }}/deps;${{env.ORTOOLS_DIR}}/install" \
-DCMAKE_INSTALL_PREFIX=_install \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubuntu-system-deps-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
-DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=_install \
-DBUILD_UI=ON \
-DVCPKG_TARGET_TRIPLET=x64-linux-release \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake

- name: Cache vcpkg binary dir
Expand All @@ -113,7 +114,7 @@ jobs:

- name: Running unit tests
run: |
export PATH=${GITHUB_WORKSPACE}/_build/vcpkg_installed/x64-linux/tools/openmpi/bin/:$PATH
export PATH=${GITHUB_WORKSPACE}/_build/vcpkg_installed/x64-linux-release/tools/openmpi/bin/:$PATH
cd _build
ctest -C Release --output-on-failure -L "medium|unit|benders|lpnamer"

Expand Down
Loading
Loading