Skip to content

Commit

Permalink
Oracle8 cpp20 support (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 authored Jan 12, 2024
1 parent 2575e1d commit eeab08a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build_oracle8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Install System
run: |
dnf install -y epel-release git cmake wget rpm-build redhat-lsb-core openmpi-devel
dnf install -y unzip libuuid-devel boost-test boost-devel gcc-toolset-9-toolchain zlib-devel python3-devel
dnf install -y unzip libuuid-devel boost-test boost-devel gcc-toolset-10-toolchain zlib-devel python3-devel
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -105,13 +105,14 @@ jobs:

- name: Install dependencies
run: |
source /opt/rh/gcc-toolset-9/enable
source /opt/rh/gcc-toolset-10/enable
pip3 install wheel #Too late to install in requirements.txt
pip3 install -r requirements-tests.txt
- name: Configure
run: |
[[ ${{ matrix.xprs }} == "XPRESS-ON" ]] && XPRESS_VALUE="ON" || XPRESS_VALUE="OFF"
source /opt/rh/gcc-toolset-9/enable
source /opt/rh/gcc-toolset-10/enable
dnf install jsoncpp-devel
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:$LD_LIBRARY_PATH
export PATH=/usr/lib64/openmpi/bin:$PATH
Expand All @@ -128,7 +129,7 @@ jobs:
- name: Build
run: |
source /opt/rh/gcc-toolset-9/enable
source /opt/rh/gcc-toolset-10/enable
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:$LD_LIBRARY_PATH
export PATH=/usr/lib64/openmpi/bin:$PATH
cmake --build _build --config Release -j2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
uses: ./.github/workflows/compile-boost
with:
prefix: "../rte-antares-deps-Release/"
load-toolset: 'false'

- name: Configure
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/compile-boost/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ inputs:
prefix:
description: 'extra qualifiers'
required: true
load-toolset:
description: 'load devtoolset 10'
default: 'true'
runs:
using: "composite"
steps:
- id: install-boost
shell: bash
run: |
source /opt/rh/gcc-toolset-9/enable || true
source /opt/rh/gcc-toolset-10/enable || true
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:$LD_LIBRARY_PATH
export PATH=/usr/lib64/openmpi/bin:$PATH
wget https://github.com/boostorg/boost/releases/download/boost-1.81.0/boost-1.81.0.tar.gz
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/compile-tbb/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ inputs:
cmake:
description: 'cmake version'
default: cmake

load-toolset:
description: 'load devtoolset 10'
default: 'true'
runs:
using: "composite"
steps:
- id: install-tbb
shell: bash
run: |
source /opt/rh/gcc-toolset-9/enable || true
source /opt/rh/gcc-toolset-10/enable || true
git clone https://github.com/wjakob/tbb.git
cd tbb/build
${{ inputs.cmake }} ..
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
uses: ./.github/workflows/compile-boost
with:
prefix: "../rte-antares-deps-Release/"
load-toolset: 'false'


- name: Init submodule
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
uses: ./.github/workflows/compile-boost
with:
prefix: "../rte-antares-deps-Release/"
load-toolset: 'false'

- name: Download userguide
uses: actions/download-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu-system-deps-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
uses: ./.github/workflows/compile-boost
with:
prefix: "../rte-antares-deps-Release/"
load-toolset: 'false'


- name: Read antares-xpansion version
Expand Down

0 comments on commit eeab08a

Please sign in to comment.