-
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.
- Loading branch information
Showing
39 changed files
with
754 additions
and
317 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
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 |
---|---|---|
|
@@ -31,6 +31,11 @@ jobs: | |
- name: Install sonar-scanner and build-wrapper | ||
uses: SonarSource/sonarcloud-github-c-cpp@v2 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: sonarcloud-${{ env.SONAR_SCANNER_VERSION }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
|
@@ -48,10 +53,21 @@ jobs: | |
run: | | ||
sudo apt-get update --fix-missing | ||
sudo apt-get install libjsoncpp-dev libgtest-dev libboost-mpi-dev libboost-program-options-dev libtbb-dev | ||
sudo apt-get install g++-10 gcc-10 | ||
cd /usr/src/googletest/ | ||
sudo cmake . | ||
sudo cmake --build . --target install | ||
- name: Update alternatives | ||
#mpicxx uses "g++" so we need g++ to be symbolic link to g++-10 | ||
run: | | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 | ||
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 | ||
sudo update-alternatives --set cc /usr/bin/gcc | ||
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 | ||
sudo update-alternatives --set c++ /usr/bin/g++ | ||
- name: Read antares-solver version | ||
id: antares-version | ||
uses: ./.github/actions/read-json-value | ||
|
@@ -80,7 +96,6 @@ jobs: | |
antares-version: ${{steps.antares-version.outputs.result}} | ||
os: ${{matrix.os}} | ||
os-full-name: Ubuntu-20.04 | ||
buildtype: Debug | ||
|
||
- name: Compile Boost | ||
uses: ./.github/workflows/compile-boost | ||
|
@@ -94,11 +109,22 @@ jobs: | |
git submodule update --init --recursive . | ||
- name: Configure | ||
shell: bash | ||
run: | | ||
cmake -B _build -S . -DDEPS_INSTALL_DIR=rte-antares-deps-Debug -DCODE_COVERAGE=ON -DBUILD_TESTING=ON -DBUILD_antares_solver=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=_install | ||
cmake -B _build -S . \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ | ||
-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 \ | ||
-DCODE_COVERAGE=ON \ | ||
-DBUILD_TESTING=ON \ | ||
-DBUILD_antares_solver=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=_install | ||
- name: Build | ||
run: build-wrapper-linux-x86-64 --out-dir $GITHUB_WORKSPACE/_build/output cmake --build _build --config Debug -j2 | ||
run: build-wrapper-linux-x86-64 --out-dir $GITHUB_WORKSPACE/_build/output cmake --build _build --config Release -j2 | ||
|
||
- name: Test and generate coverage | ||
continue-on-error: true | ||
|
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
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
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
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
Oops, something went wrong.