Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Oct 19, 2023
2 parents 3963904 + 0643037 commit 1b7746c
Show file tree
Hide file tree
Showing 63 changed files with 349 additions and 298 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ jobs:
uses: tj-actions/changed-files@v32
with:
files: |
docker/centos7-bare
docker/centos7-system-deps
- name: Docker file push
id: docker_push
if: steps.changed-files.outputs.any_changed == 'true'
uses: elgohr/Publish-Docker-Github-Action@master
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: antaresrte/rte-antares
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: docker
dockerfile: centos7-bare
dockerfile: centos7-system-deps
cache: false
tags: centos7-xpansion-bare
tags: centos7-system-deps

versions:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
build:
runs-on: ubuntu-latest
needs: [ docker_publish, versions ]
container: 'antaresrte/rte-antares:centos7-xpansion-bare'
container: 'antaresrte/rte-antares:centos7-system-deps'
strategy:
matrix:
xprs: [ XPRESS-ON, XPRESS-OFF ]
Expand Down Expand Up @@ -117,8 +117,15 @@ jobs:
with:
prefix: "../rte-antares-deps-Release/"

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake3'

- name: Install dependencies
run: |
pip3 install --upgrade pip
pip3 install wheel #Does not work in requirements
pip3 install -r requirements-tests.txt
pip3 install -r requirements-ui.txt
- name: Configure
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ jobs:
- name: Install mandatory system libraries
run: |
sudo apt-get update --fix-missing
sudo apt-get install libjsoncpp-dev libgtest-dev libboost-mpi-dev libboost-program-options-dev libtbb-dev
cd /usr/src/googletest/
sudo cmake .
sudo cmake --build .
sudo apt-get install -y ccache cmake libgtest-dev libjsoncpp-dev libtbb-dev libopenmpi-dev
- name: Read antares-solver version
id: antares-version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ jobs:
shell: bash

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake'
cmake: 'cmake'

- name: Download pre-compiled librairies
uses: ./.github/workflows/download-extract-precompiled-libraries-zip
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/centos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ jobs:
uses: tj-actions/changed-files@v32
with:
files: |
docker/centos7-bare
docker/centos7-system-deps
- name: Docker file push
id: docker_push
if: steps.changed-files.outputs.any_changed == 'true'
uses: elgohr/Publish-Docker-Github-Action@master
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: antaresrte/rte-antares
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: docker
dockerfile: centos7-bare
dockerfile: centos7-system-deps
cache: false
tags: centos7-xpansion-bare
tags: centos7-system-deps

userguide:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
build:
runs-on: ubuntu-latest
needs: [ docker_publish, userguide, versions ]
container: 'antaresrte/rte-antares:centos7-xpansion-bare'
container: 'antaresrte/rte-antares:centos7-system-deps'
strategy:
matrix:
xprs: [ XPRESS-ON, XPRESS-OFF ]
Expand Down Expand Up @@ -144,8 +144,15 @@ jobs:
with:
prefix: "../rte-antares-deps-Release/"

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake3'

- name: Install dependencies
run: |
pip3 install --upgrade pip
pip3 install wheel #Does not work in requirements
pip3 install -r requirements-tests.txt
pip3 install -r requirements-ui.txt
Expand Down
65 changes: 39 additions & 26 deletions .github/workflows/centos7-system-deps-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ on:
- release/*
- ci/*
jobs:
docker_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v32
with:
files: |
docker/centos7-system-deps
- name: Docker file push
id: docker_push
if: steps.changed-files.outputs.any_changed == 'true'
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: antaresrte/rte-antares
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: docker
dockerfile: centos7-system-deps
cache: false
tags: centos7-system-deps

versions:
runs-on: ubuntu-latest
Expand All @@ -16,7 +41,7 @@ jobs:
antares-xpansion-version: ${{steps.antares-xpansion-version.outputs.result}}
antares-deps-version: ${{steps.antares-deps-version.outputs.result}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.6.0
- name: Read antares-solver version
id: antares-version
uses: ./.github/actions/read-json-value
Expand All @@ -41,40 +66,21 @@ jobs:
build:

runs-on: ubuntu-latest
needs: versions
container: 'centos:7'
needs: [ docker_publish, versions ]
container: 'antaresrte/rte-antares:centos7-system-deps'

steps:
- id: branch-name
uses: tj-actions/branch-names@v6

- name: Set up Python
run: |
yum update -y
yum install -y python3 python3-pip
pip3 install --upgrade pip
- name: Install libraries
run: |
yum install -y wget git epel-release redhat-lsb-core gcc gcc-c++ make centos-release-scl scl-utils
yum install -y jsoncpp-devel gtest-devel openmpi-devel doxygen graphviz boost-program-options
yum install -y cmake3 devtoolset-9 environment-modules rpm-build zlib-devel
yum install -y rh-git227-git
yum install -y libuuid-devel
- name: update bashrc
run: |
echo "source scl_source enable rh-git227" >> ~/.bashrc
echo "source scl_source enable devtoolset-9" >> ~/.bashrc
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
submodules: true

- name: Install dependencies
run: |
pip3 install wheel #Does not work in requirements
pip3 install -r requirements-tests.txt
pip3 install -r requirements-ui.txt
- name: Compile Boost
uses: ./.github/workflows/compile-boost
Expand All @@ -86,19 +92,26 @@ jobs:
with:
cmake: 'cmake3'

- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.22.x'

- name: Configure
run: |
source /opt/rh/devtoolset-9/enable
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:$LD_LIBRARY_PATH
export PATH=/usr/lib64/openmpi/bin:$PATH
cmake3 -B _build -S . \
cmake -B _build -S . \
-DDEPS_INSTALL_DIR=rte-antares-deps-Release \
-DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=_install -DBUILD_UI=ON -DALLOW_RUN_AS_ROOT=ON
- name: Build
run: |
source /opt/rh/devtoolset-9/enable
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:$LD_LIBRARY_PATH
export PATH=/usr/lib64/openmpi/bin:$PATH
cmake3 --build _build --config Release -j2 --target install
cmake --build _build --config Release -j2 --target install
- name: Running unit tests
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish_centos_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:

- name: Docker file push
id: docker_push
uses: elgohr/Publish-Docker-Github-Action@master
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: antaresrte/rte-antares
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: docker
dockerfile: centos7-bare
dockerfile: centos7-system-deps
cache: false
tags: centos7-xpansion-bare
tags: centos7-system-deps
6 changes: 3 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ jobs:
os: ${{matrix.os}}
os-full-name: Ubuntu-20.04
buildtype: Debug

- name: Compile Boost
uses: ./.github/workflows/compile-boost
with:
with:
prefix: "../rte-antares-deps-Release/"


- name: Init submodule
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ jobs:
antares-version: ${{steps.antares-version.outputs.result}}
os: ${{matrix.os}}
os-full-name: Ubuntu-20.04

- name: Compile Boost
uses: ./.github/workflows/compile-boost
with:
with:
prefix: "../rte-antares-deps-Release/"

- name: Download userguide
uses: actions/download-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-vcpkg-deps-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ jobs:
shell: bash

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake'
cmake: 'cmake'

- name: Configure
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ jobs:
shell: bash

- name: Compile tbb
uses: ./.github/workflows/compile-tbb
uses: ./.github/workflows/compile-tbb
with:
cmake: 'cmake'
cmake: 'cmake'

- name: Download pre-compiled librairies
uses: ./.github/workflows/download-extract-precompiled-libraries-zip
with:
Expand Down
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -349,20 +349,20 @@ install(DIRECTORY ${ANTARES_SOLVER_DIR}/../lib/

install(PROGRAMS ${ANTARES_SOLVER_PATH}
TYPE BIN)

find_package(antares-study-updater)
if (antares-study-updater_FOUND)

if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
get_target_property( ANTARES_STUDY_UPDATER_PATH antares-${ANTARES_VERSION}-study-updater IMPORTED_LOCATION_RELEASE )
else()
get_target_property( ANTARES_STUDY_UPDATER_PATH antares-${ANTARES_VERSION}-study-updater IMPORTED_LOCATION_DEBUG )
endif()
if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
get_target_property(ANTARES_STUDY_UPDATER_PATH antares-${ANTARES_VERSION}-study-updater IMPORTED_LOCATION_RELEASE)
else ()
get_target_property(ANTARES_STUDY_UPDATER_PATH antares-${ANTARES_VERSION}-study-updater IMPORTED_LOCATION_DEBUG)
endif ()

install(PROGRAMS ${ANTARES_STUDY_UPDATER_PATH}
TYPE BIN)
endif()
TYPE BIN)

endif ()

include (InstallRequiredSystemLibraries)

Expand Down
4 changes: 2 additions & 2 deletions antares-version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"antares_version": "8.7.0",
"antares_version_executable": "8.7",
"antares_version": "8.8.0-rc2",
"antares_version_executable": "8.8",
"antares_xpansion_version": "1.1.0",
"antares_deps_version": "2.0.7",
"minizip_ng_version": "3.0.6"
Expand Down
Loading

0 comments on commit 1b7746c

Please sign in to comment.