-
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
63 changed files
with
349 additions
and
298 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
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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: | | ||
|
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.