Skip to content

Commit

Permalink
Merge branch 'develop' into var_speed_cond_ctrl
Browse files Browse the repository at this point in the history
  • Loading branch information
lymereJ committed Jun 13, 2024
2 parents cd43308 + 6b69184 commit 26a11b9
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 40 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/linux_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_TYPE: Release
Python_REQUIRED_VERSION: 3.8
Python_REQUIRED_VERSION: 3.12.2

jobs:
build_installer_artifact:
Expand All @@ -19,7 +19,7 @@ jobs:
# fail-fast: Default is true, switch to false to allow one platform to fail and still run others
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]

permissions:
# Needed permission to upload the release asset
Expand All @@ -30,7 +30,7 @@ jobs:

- name: Set up Python ${{ env.Python_REQUIRED_VERSION }}
id: setup-python
uses: actions/setup-python@v5
uses: jmarrec/setup-python@v5
with:
python-version: ${{ env.Python_REQUIRED_VERSION }}

Expand All @@ -51,6 +51,10 @@ jobs:
echo "Using Apt to install dependencies"
sudo apt-get update
sudo apt-get install texlive texlive-xetex texlive-science libxkbcommon-x11-0 xorg-dev libgl1-mesa-dev
if [[ "${{ matrix.os }}" == "ubuntu-24.04" ]]; then
# https://github.com/actions/runner-images/issues/10025
echo "FC=gfortran-13" >> $GITHUB_ENV
fi
- name: Create Build Directory
run: cmake -E make_directory ./build/
Expand Down Expand Up @@ -119,22 +123,25 @@ jobs:
# fail-fast: Default is true, switch to false to allow one platform to fail and still run others
fail-fast: false
matrix:
name: [20, 22]
name: [20, 22, 24]
include:
- name: 20
os: ubuntu-20.04
test_key: ubuntu2004
- name: 22
os: ubuntu-22.04
test_key: ubuntu2204
- name: 24
os: ubuntu-24.04
test_key: ubuntu2404

steps:
- uses: actions/checkout@v4 # Still need E+ checked out to get testing scripts
with:
path: checkout

- name: Set up Python ${{ env.Python_REQUIRED_VERSION }}
uses: actions/setup-python@v5
uses: jmarrec/setup-python@v5
id: setup-python
with:
python-version: ${{ env.Python_REQUIRED_VERSION }}
Expand Down
55 changes: 26 additions & 29 deletions .github/workflows/mac_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
BUILD_TYPE: Release
FC: gfortran-13
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
Python_REQUIRED_VERSION: 3.12.2

jobs:
build_installer_artifact:
Expand All @@ -19,35 +20,37 @@ jobs:
# fail-fast: Default is true, switch to false to allow one platform to fail and still run others
fail-fast: false
matrix:
macos_dev_target: [11.6, 12.1] #, 13.0]
macos_dev_target: [12.1, 13.0]
include:
- macos_dev_target: 11.6
os: macos-11
allow_failure: false
arch: x86_64
python: 3.8
- macos_dev_target: 12.1
os: macos-12
allow_failure: false
arch: x86_64
python: 3.8
# - macos_dev_target: 13.0
# os: macos-14
# allow_failure: false
# arch: arm64
# python: 3.12.0 # Make sure to add the package testing below for ARM once we add this build to GHA
python-arch: x64
- macos_dev_target: 13.0
os: macos-14
allow_failure: false
arch: arm64
python-arch: arm64
permissions:
# Needed permission to upload the release asset
contents: write

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python }}
- name: Remove python ${{ env.Python_REQUIRED_VERSION }} from the toolcache
run: |
ls $RUNNER_TOOL_CACHE/Python || true
rm -Rf "$RUNNER_TOOL_CACHE/Python/${{ env.Python_REQUIRED_VERSION }}"
rm -Rf "$RUNNER_TOOL_CACHE/Python/${{ env.Python_REQUIRED_VERSION }}*/"
- name: Set up Python ${{ env.Python_REQUIRED_VERSION }}
id: setup-python
uses: actions/setup-python@v5
uses: jmarrec/setup-python@v5
with:
python-version: ${{ matrix.python }}
python-version: ${{ env.Python_REQUIRED_VERSION }}
# check-latest: true # Force pick up the python I built instead of the (potential) toolcache one. I could also do `rm -Rf $RUNNER_TOOL_CACHE/Python/3.12.2` before this action

- name: Setup QtIFW 4.x
uses: jmarrec/setup-qtifw@v1
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:
cmake -DCMAKE_BUILD_TYPE:STRING=$BUILD_TYPE \
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=${{ matrix.macos_dev_target }} \
-DLINK_WITH_PYTHON:BOOL=ON -DPython_REQUIRED_VERSION:STRING=${{ steps.setup-python.outputs.python-version }} \
-DPython_ROOT_DIR:PATH=$RUNNER_TOOL_CACHE/Python/${{ steps.setup-python.outputs.python-version }}/x64/ \
-DPython_ROOT_DIR:PATH=$RUNNER_TOOL_CACHE/Python/${{ steps.setup-python.outputs.python-version }}/${{ matrix.python-arch }}/ \
-DBUILD_FORTRAN:BOOL=ON -DBUILD_PACKAGE:BOOL=ON \
-DDOCUMENTATION_BUILD:STRING="BuildWithAll" -DTEX_INTERACTION:STRING="batchmode" \
-DENABLE_OPENMP:BOOL=OFF -DUSE_OpenMP:BOOL=OFF \
Expand Down Expand Up @@ -146,22 +149,16 @@ jobs:
# fail-fast: Default is true, switch to false to allow one platform to fail and still run others
fail-fast: false
matrix:
macos_dev_target: [ 11.6, 12.1 ] #, 13.0]
macos_dev_target: [ 12.1, 13.0]
include:
- macos_dev_target: 11.6
os: macos-11
arch: x86_64
python: 3.8
test_key: mac11
- macos_dev_target: 12.1
os: macos-12
arch: x86_64
python: 3.8
python-arch: x64
test_key: mac12
# - macos_dev_target: 13.0
# os: macos-14
# arch: arm64
# python: 3.12.0 # Make sure to add the package testing below for ARM once we add this build to GHA
- macos_dev_target: 13.0
os: macos-14
python-arch: arm64
test_key: mac13-arm64

steps:
- uses: actions/checkout@v4 # Still need E+ checked out to get testing scripts
Expand All @@ -173,7 +170,7 @@ jobs:
id: setup-python
with:
python-version: ${{ env.Python_REQUIRED_VERSION }}
architecture: ${{ matrix.arch }}
architecture: ${{ matrix.python-arch }}

- name: Gather Test Package from Artifacts
uses: actions/download-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
CMAKE_Fortran_COMPILER: "/c/msys64/mingw64/bin/x86_64-w64-mingw32-gfortran.exe"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_TYPE: Release
Python_REQUIRED_VERSION: 3.8
Python_REQUIRED_VERSION: 3.12.2

jobs:
build_installer_artifact:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python ${{ env.Python_REQUIRED_VERSION }}
uses: actions/setup-python@v5
uses: jmarrec/setup-python@v5
id: setup-python
with:
python-version: ${{ env.Python_REQUIRED_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ if(LINK_WITH_PYTHON)
if(Python_REQUIRED_VERSION)
find_package(Python ${Python_REQUIRED_VERSION} EXACT COMPONENTS Interpreter Development REQUIRED)
else()
find_package(Python 3.8 COMPONENTS Interpreter Development REQUIRED)
find_package(Python 3.12 COMPONENTS Interpreter Development REQUIRED)
endif()
else()
find_package(Python 3.6 COMPONENTS Interpreter REQUIRED)
Expand Down
6 changes: 3 additions & 3 deletions scripts/package_tests/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ class OS:
'ubuntu2204': {
'os': OS.Linux, 'bitness': 'x64', 'asset_pattern': 'Linux-Ubuntu22.04-x86_64.tar.gz', 'os_version': '22.04'
},
'ubuntu2404': {
'os': OS.Linux, 'bitness': 'x64', 'asset_pattern': 'Linux-Ubuntu24.04-x86_64.tar.gz', 'os_version': '24.04'
},
'mac11': {
'os': OS.Mac, 'bitness': 'x64', 'asset_pattern': 'Darwin-macOS11.6-x86_64.tar.gz', 'os_version': '11.6'
},
'mac12': {
'os': OS.Mac, 'bitness': 'x64', 'asset_pattern': 'Darwin-macOS12.1-x86_64.tar.gz', 'os_version': '12.1'
},
'mac12-arm64': {
'os': OS.Mac, 'bitness': 'arm64', 'asset_pattern': 'Darwin-macOS12.1-arm64.tar.gz', 'os_version': '12'
},
'mac13-arm64': {
'os': OS.Mac, 'bitness': 'arm64', 'asset_pattern': 'Darwin-macOS13-arm64.tar.gz', 'os_version': '13'
},
Expand Down

5 comments on commit 26a11b9

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var_speed_cond_ctrl (lymereJ) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (3332 of 3640 tests passed, 0 test warnings)

Messages:\n

  • 305 tests had: AUD diffs.
  • 304 tests had: EIO diffs.
  • 27 tests had: Table small diffs.
  • 7 tests had: Table big diffs.

Failures:\n

regression Test Summary

  • Passed: 500
  • Failed: 308

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var_speed_cond_ctrl (lymereJ) - Win64-Windows-10-VisualStudio-16: OK (2810 of 2810 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var_speed_cond_ctrl (lymereJ) - x86_64-MacOS-10.18-clang-15.0.0: OK (3292 of 3599 tests passed, 0 test warnings)

Messages:\n

  • 304 tests had: AUD diffs.
  • 303 tests had: EIO diffs.
  • 27 tests had: Table small diffs.
  • 7 tests had: Table big diffs.

Failures:\n

regression Test Summary

  • Passed: 481
  • Failed: 307

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var_speed_cond_ctrl (lymereJ) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-Debug: OK (792 of 792 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var_speed_cond_ctrl (lymereJ) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: OK (2021 of 2021 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.