-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Coin dependency mangement to vcpkg (#843)
- Remove Antares Deps dependency. - Manage Coin dependency with vcpkg through custom ports - Improve vcpkg usage in CI --------- Co-authored-by: Jason Marechal <[email protected]> Co-authored-by: Abdoulbari Zakir <[email protected]> Co-authored-by: Abdoulbari Zaher <[email protected]>
- Loading branch information
1 parent
1bbbad1
commit 99d1ffa
Showing
37 changed files
with
516 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ jobs: | |
XPRESSDIR: ${{ github.workspace }}/xpress | ||
XPRESS: ${{ github.workspace }}/xpress/bin | ||
XPRS_LIB_Path: ${{ github.workspace }}/xpress/lib | ||
VCPKG_BINARY_SOURCES: "clear;files,${{ github.workspace }}/vcpkg_cache,readwrite" | ||
|
||
outputs: | ||
TGZ_NAME: ${{ steps.export_output.outputs.TGZ_NAME }} | ||
|
@@ -49,6 +50,12 @@ jobs: | |
ref: ${{ matrix.xprs.ref}} | ||
token: ${{ secrets.AS_TOKEN }} #reniew token periodically | ||
|
||
- name: Install mandatory system libraries | ||
run: | | ||
sudo apt-get update --fix-missing | ||
sudo apt-get install -y ccache | ||
sudo apt-get install -y g++-10 gcc-10 | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -66,12 +73,6 @@ jobs: | |
pip install -r requirements-tests.txt | ||
pip install -r requirements-ui.txt | ||
- name: Install mandatory system libraries | ||
run: | | ||
sudo apt-get update --fix-missing | ||
sudo apt-get install -y ccache | ||
sudo apt-get install -y g++-10 gcc-10 | ||
- name: Update alternatives | ||
#mpicxx uses "g++" so we need g++ to be symbolic link to g++-10 | ||
run: | | ||
|
@@ -101,29 +102,19 @@ jobs: | |
path: 'antares-version.json' | ||
key: 'antares_xpansion_version' | ||
|
||
- name: Read antares-deps version | ||
id: antares-deps-version | ||
uses: ./.github/actions/read-json-value | ||
with: | ||
path: 'antares-version.json' | ||
key: 'antares_deps_version' | ||
|
||
- name: Download pre-compiled librairies | ||
uses: ./.github/workflows/download-extract-precompiled-libraries-tgz | ||
with: | ||
antares-deps-version: ${{steps.antares-deps-version.outputs.result}} | ||
antares-version: ${{steps.antares-version.outputs.result}} | ||
os: ${{matrix.os}} | ||
os-full-name: Ubuntu-20.04 | ||
|
||
- run: | | ||
mkdir -p ${{ github.workspace }}/vcpkg_cache | ||
- name: vcpkg install | ||
run: | | ||
git submodule update --remote --init vcpkg | ||
pushd vcpkg | ||
git fetch --unshallow | ||
./bootstrap-vcpkg.sh --disableMetrics | ||
./bootstrap-vcpkg.sh -disableMetrics | ||
- name: Restore vcpkg binary dir from cache | ||
id: cache-vcpkg-binary | ||
|
@@ -142,10 +133,10 @@ jobs: | |
-DCMAKE_C_COMPILER=/usr/bin/gcc-10 \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_CXX_COMPILER=/usr/bin/g++-10 \ | ||
-DDEPS_INSTALL_DIR=rte-antares-deps-Release \ | ||
-DBUILD_TESTING=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=_install \ | ||
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/deps \ | ||
-DBUILD_UI=ON \ | ||
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.