-
Notifications
You must be signed in to change notification settings - Fork 10
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
Ci/centos #696
Merged
Merged
Ci/centos #696
Changes from 50 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
951fb37
Remove dependency to antares-study-updater
JasonMarechal25 5718745
New action
JasonMarechal25 0765264
Try fix centOS
JasonMarechal25 3781d60
3.6
JasonMarechal25 825d5a1
3.6
JasonMarechal25 b7a453c
Fix missing deps
JasonMarechal25 0ac00fb
Try simplify centOS image use
JasonMarechal25 3dc9649
Fix need
JasonMarechal25 828a499
Fix image name
JasonMarechal25 84a2a71
Update docker publish action
JasonMarechal25 599e961
Properly source bashrc in actions
JasonMarechal25 a928f54
test
JasonMarechal25 0322d37
yml
JasonMarechal25 b0cad9a
Add -l
JasonMarechal25 8f836e4
f
JasonMarechal25 b63e363
f
JasonMarechal25 1a5699c
source
JasonMarechal25 ccfa9d9
source
JasonMarechal25 72e6ab0
shell
JasonMarechal25 30251c4
Proper git
JasonMarechal25 34d6e22
Fix action
JasonMarechal25 d14d7b9
Add wheel package
JasonMarechal25 ca79148
Add wheel package
JasonMarechal25 7073eb7
Install python3
JasonMarechal25 de7eab9
Fix install deps
JasonMarechal25 30f7322
Install cmake
JasonMarechal25 138b1e8
source devtoolset9
JasonMarechal25 efe8c6a
Fix missing deps
JasonMarechal25 9728de5
Fix rebase
JasonMarechal25 10f4c4b
Revert "Fix missing deps"
JasonMarechal25 47dc03b
Delete test action
JasonMarechal25 55cebe3
Fix missing cache
JasonMarechal25 fcf7864
f
JasonMarechal25 b9564f4
Fix ubuntu CI
JasonMarechal25 37e45c9
Fix ubuntu CI
JasonMarechal25 b08a400
Fix ubuntu CI
JasonMarechal25 c98863c
Fix ubuntu CI
JasonMarechal25 f1912bc
Fix ubuntu CI
JasonMarechal25 e63894f
Fix ubuntu CI
JasonMarechal25 630170e
Fix ubuntu CI
JasonMarechal25 16bcdcf
Fix ubuntu CI
JasonMarechal25 12d88ce
Fix ubuntu CI
JasonMarechal25 fdf7f2b
Fix ubuntu CI
JasonMarechal25 096b7b9
Fix centOS
JasonMarechal25 98b15b3
Fix centOS
JasonMarechal25 5e4e234
Build TBB
JasonMarechal25 cbce444
Build TBB
JasonMarechal25 b3859b2
Build boost test
JasonMarechal25 463ef43
$
JasonMarechal25 acc6728
Fix ci
JasonMarechal25 fa73a3a
Reactivate build UI to catch dep issues
JasonMarechal25 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 . \ | ||
a-zakir marked this conversation as resolved.
Show resolved
Hide resolved
|
||
-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 | ||
-DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=_install -DBUILD_UI=OFF -DALLOW_RUN_AS_ROOT=ON | ||
JasonMarechal25 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- 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 | ||
JasonMarechal25 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
wheel
a new dependency? why ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¯_(ツ)_/¯