Skip to content

Commit

Permalink
Merge branch 'develop' into release/1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed May 29, 2024
2 parents c3ef683 + a243698 commit 6a56a0f
Show file tree
Hide file tree
Showing 487 changed files with 369,271 additions and 1,249 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-userguide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
antares-xpansion-version: ${{steps.antares-xpansion-version.outputs.result}}

- name: upload user guide
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.create-user-guide.outputs.pdf-name }}
path: ${{ steps.create-user-guide.outputs.pdf-path }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v32
uses: tj-actions/changed-files@v44
with:
files: |
docker/centos7-system-deps
Expand All @@ -47,7 +47,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 #Keep at 3. v4 uses node 20 which uses glibc_2.27
- uses: actions/checkout@v4
- name: Read antares-solver version
id: antares-version
uses: ./.github/actions/read-json-value
Expand Down Expand Up @@ -182,7 +182,6 @@ jobs:
-DCMAKE_INSTALL_PREFIX=_install \
-DBUILD_UI=ON \
-DXPRESS=${{ env.XPRESS_VALUE }} \
-DXPRESS_ROOT=${{ env.XPRESSDIR }} \
-DALLOW_RUN_AS_ROOT=ON \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build_oracle8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ jobs:
-DCMAKE_INSTALL_PREFIX=_install \
-DBUILD_UI=OFF \
-DXPRESS=${{ env.XPRESS_VALUE }} \
-DXPRESS_ROOT=${{ env.XPRESSDIR }} \
-DALLOW_RUN_AS_ROOT=ON \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ jobs:
-DCMAKE_INSTALL_PREFIX=_install \
-DBUILD_UI=ON \
-DXPRESS=${{ env.XPRESS_VALUE }} \
-DXPRESS_ROOT=${{ env.XPRESSDIR }} \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Configure
run: |
$pwd=Get-Location
cmake -B _build -S . -DDEPS_INSTALL_DIR=rte-antares-deps-Release -DCMAKE_PREFIX_PATH="$pwd\rte-antares-${{steps.antares-version.outputs.result}}-installer-64bits" -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DCMAKE_INSTALL_PREFIX=_install -DBUILD_UI=ON -DXPRESS=${{ env.XPRESS_VALUE }} -DXPRESS_ROOT="${{ env.XPRESSDIR }}"
cmake -B _build -S . -DDEPS_INSTALL_DIR=rte-antares-deps-Release -DCMAKE_PREFIX_PATH="$pwd\rte-antares-${{steps.antares-version.outputs.result}}-installer-64bits" -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DCMAKE_INSTALL_PREFIX=_install -DBUILD_UI=ON -DXPRESS=${{ env.XPRESS_VALUE }}
- name: Build
run: |
cmake --build _build --config Release -j4
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/centos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v32
uses: tj-actions/changed-files@v44
with:
files: |
docker/centos7-system-deps
Expand All @@ -54,7 +54,7 @@ jobs:
pdf-name: ${{ steps.create-user-guide.outputs.pdf-name }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Read antares-xpansion version
id: antares-xpansion-version
Expand All @@ -71,7 +71,7 @@ jobs:

- name: user guide upload
id: userguide_upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v3 #aligned with download in centOS job
with:
name: user-guide
path: ${{ steps.create-user-guide.outputs.pdf-path }}
Expand All @@ -83,7 +83,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@v4
- name: Read antares-solver version
id: antares-version
uses: ./.github/actions/read-json-value
Expand Down Expand Up @@ -127,10 +127,10 @@ jobs:
singlefile_name: ${{ steps.zip_name.outputs.singlefile_name }}
steps:
- id: branch-name
uses: tj-actions/branch-names@v6
uses: tj-actions/branch-names@v8

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v3 #keep v3
with:
submodules: true

Expand Down Expand Up @@ -222,7 +222,6 @@ jobs:
-DBUILD_UI=ON \
-DUSER_GUIDE_PATH="docs/${{ needs.userguide.outputs.pdf-name }}" \
-DXPRESS=${XPRESS_VALUE} \
-DXPRESS_ROOT=${XPRESSDIR} \
-DALLOW_RUN_AS_ROOT=ON \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
Expand Down Expand Up @@ -319,4 +318,4 @@ jobs:
gh release upload --repo ${{env.GH_REPO}} ${{ steps.get_release.outputs.tag_name }} ${{env.ZIP_NAME}}
gh release upload --repo ${{env.GH_REPO}} ${{ steps.get_release.outputs.tag_name }} ${{env.SINGLEFILE_NAME}}
########################
########################
8 changes: 4 additions & 4 deletions .github/workflows/centos7-system-deps-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v32
uses: tj-actions/changed-files@v44
with:
files: |
docker/centos7-system-deps
Expand All @@ -42,7 +42,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@v4
- name: Read antares-solver version
id: antares-version
uses: ./.github/actions/read-json-value
Expand Down Expand Up @@ -72,9 +72,9 @@ jobs:

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

- uses: actions/checkout@v3
- uses: actions/checkout@v3 #keep v3
with:
submodules: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
git apply ../docs/antares-xpansion.patch
- name: Doxygen
uses: mattnotmitt/doxygen-action@1.9.5
uses: mattnotmitt/doxygen-action@v1.9.8
with:
doxyfile-path: docs/Doxyfile

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/ol8-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

- name: user guide upload
id: userguide_upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: user-guide
path: ${{ steps.create-user-guide.outputs.pdf-path }}
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
singlefile_name: ${{ steps.zip_name.outputs.singlefile_name }}
steps:
- id: branch-name
uses: tj-actions/branch-names@v6
uses: tj-actions/branch-names@v8

- name: Install System
run: |
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
pip3 install -r requirements-ui.txt
- name: Download userguide
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: user-guide
path: docs/
Expand Down Expand Up @@ -185,7 +185,6 @@ jobs:
-DBUILD_UI=ON \
-DUSER_GUIDE_PATH="docs/${{ needs.userguide.outputs.pdf-name }}" \
-DXPRESS=${XPRESS_VALUE} \
-DXPRESS_ROOT=${XPRESSDIR} \
-DALLOW_RUN_AS_ROOT=ON \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
Expand Down Expand Up @@ -226,7 +225,7 @@ jobs:
echo "TGZ_NAME=$FILE_NAME.tar.gz" >> $GITHUB_ENV
- name: Upload .tar.gz
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{env.TGZ_NAME}}
path: _build/${{env.TGZ_NAME}}
Expand All @@ -238,7 +237,7 @@ jobs:
antares-xpansion-version: ${{env.VERSION_WITH_XPRESS}}

- name: Upload single file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.create-single-file.outputs.archive-name }}
path: ${{ steps.create-single-file.outputs.archive-path }}
Expand All @@ -263,13 +262,13 @@ jobs:
uses: bruceadams/get-release@main

- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{env.ZIP_NAME}}
path: .

- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{env.SINGLEFILE_NAME}}
path: .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
prerelease: ${{ contains(github.ref, '-rc') }}
4 changes: 2 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -34,7 +34,7 @@ jobs:
key: ${{ matrix.os }}-${{ matrix.xprs.value }}

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: user guide upload
id: userguide_upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: user-guide
path: ${{ steps.create-user-guide.outputs.pdf-path }}
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
os-full-name: Ubuntu-20.04

- name: Download userguide
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: user-guide
path: docs/
Expand Down Expand Up @@ -179,7 +179,6 @@ jobs:
-DBUILD_UI=ON \
-DUSER_GUIDE_PATH="docs/${{ needs.userguide.outputs.pdf-name }}" \
-DXPRESS=${{ env.XPRESS_VALUE }} \
-DXPRESS_ROOT=${{ env.XPRESSDIR }} \
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
Expand Down Expand Up @@ -223,13 +222,13 @@ jobs:
#Uploads are not necessary for release but useful in other cases
- name: Upload .tar.gz
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{env.TGZ_NAME}}
path: _build/${{env.TGZ_NAME}}

- name: Upload single file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.create-single-file.outputs.archive-name }}
path: ${{ steps.create-single-file.outputs.archive-path }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/windows-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: user guide upload
id: userguide_upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: user-guide
path: ${{ steps.create-user-guide.outputs.pdf-path }}
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
os: ${{matrix.os}}

- name: Download userguide
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: user-guide
path: docs/
Expand All @@ -188,7 +188,7 @@ jobs:
#Inverted ternary : @({'condition is false'},{'condition is true'})[$condition] => ({true}, {false})[!$condition]
run: |
$pwd=Get-Location
cmake -B _build -S . -DDEPS_INSTALL_DIR=rte-antares-deps-Release -DCMAKE_PREFIX_PATH="$pwd\rte-antares-${{steps.antares-version.outputs.result}}-installer-64bits" -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DCMAKE_INSTALL_PREFIX=_install -DBUILD_UI=ON -DUSER_GUIDE_PATH="docs/${{ needs.userguide.outputs.pdf-name }}" -DXPRESS=${{ env.XPRESS_VALUE }} -DXPRESS_ROOT="${{ env.XPRESSDIR }}"
cmake -B _build -S . -DDEPS_INSTALL_DIR=rte-antares-deps-Release -DCMAKE_PREFIX_PATH="$pwd\rte-antares-${{steps.antares-version.outputs.result}}-installer-64bits" -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} -DCMAKE_INSTALL_PREFIX=_install -DBUILD_UI=ON -DUSER_GUIDE_PATH="docs/${{ needs.userguide.outputs.pdf-name }}" -DXPRESS=${{ env.XPRESS_VALUE }}
- name: Build
run: |
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
echo "VERSION_WITH_XPRESS=$VERSION" >> $GITHUB_ENV
- name: Upload installer
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{env.ZIP_NAME}}
path: _build/${{env.ZIP_NAME}}
Expand All @@ -237,7 +237,7 @@ jobs:
antares-xpansion-version: ${{env.VERSION_WITH_XPRESS}}

- name: Upload single file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.create-single-file.outputs.archive-name }}
path: ${{ steps.create-single-file.outputs.archive-path }}
Expand All @@ -262,13 +262,13 @@ jobs:
uses: bruceadams/get-release@main

- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{env.ZIP_NAME}}
path: .

- name: Download Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{env.SINGLEFILE_NAME}}
path: .
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ _build
_install
antares-deps
include/google
vcpkg_installed

# Cmake generated files
CMakeCache.txt
Expand All @@ -59,3 +60,7 @@ include/google/protobuf/message.h

# vscode
.vscode

# Local env
.venv
vcpkg_installed
Loading

0 comments on commit 6a56a0f

Please sign in to comment.