Skip to content

Commit 71e3cf8

Browse files
authored
Merge pull request #814 from openstudiocoalition/develop
PR to create 1.10.0-RC1
2 parents d1f8909 + 89d1bcc commit 71e3cf8

File tree

64 files changed

+926142
-1616052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+926142
-1616052
lines changed

.github/workflows/app_build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ jobs:
207207
ccache --zero-stats || true
208208
209209
- name: "Configure for codesigning"
210+
id: codesigning
210211
if: runner.os == 'macOS'
211212
run: |
212213
set -x
@@ -217,7 +218,8 @@ jobs:
217218
echo "${{ secrets.MACOS_DEVELOPER_ID_INSTALLER_CERTIFICATE_P12_BASE64 }}" | base64 --decode > certificate_installer.p12
218219
219220
# ----- Configure Keychain -----
220-
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
221+
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing-${{ github.run_id }}.keychain-db
222+
echo "KEYCHAIN_PATH=${KEYCHAIN_PATH}" >> $GITHUB_OUTPUT
221223
security create-keychain -p "${{ secrets.MACOS_KEYCHAIN_PASSWORD }}" $KEYCHAIN_PATH
222224
# Unlock it for 6 hours
223225
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
@@ -502,7 +504,7 @@ jobs:
502504
set -x
503505
if [ "$RUNNER_OS" == "macOS" ]; then
504506
# Avoid "builtin __has_nothrow_assign is deprecated; use __is_nothrow_assignable instead" in boost/1.78 with recent clang
505-
conan install . --output-folder=./build --build=missing -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.cppstd=20 -s build_type=Release -c tools.build:cxxflags="['-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']"
507+
conan install . --output-folder=./build --build=missing -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.cppstd=20 -s build_type=Release -c tools.build:cxxflags="['-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION', '-Wno-enum-constexpr-conversion']"
506508
else
507509
conan install . --output-folder=./build --build=missing -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.cppstd=20 -s build_type=Release
508510
fi
@@ -681,6 +683,12 @@ jobs:
681683
/bin/rm OpenStudioApplication-*${{ env.BINARY_EXT }} || true
682684
ls OpenStudioApplication-* || true
683685
686+
- name: "Clean up codesigning"
687+
if: always() && runner.os == 'macOS'
688+
run: |
689+
echo "Deleting keychain ${{ steps.codesigning.outputs.KEYCHAIN_PATH }}"
690+
security delete-keychain ${{ steps.codesigning.outputs.KEYCHAIN_PATH }} || true
691+
rm -f ${{ steps.codesigning.outputs.KEYCHAIN_PATH }}
684692
685693
test_package_macos:
686694
name: Test Built Package on macOS

.github/workflows/check_osm_versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
shell: bash
2626
run: |
2727
echo "There is a workflow called export_standards_data that you should run first (it's a manual workflow_dispatch workflow)"
28-
echo "or run it locally via 'cd developper/ruby && openstudio export_openstudio_standards_libraries.rb'"
28+
echo "or run it locally via 'cd developer/ruby && openstudio export_openstudio_standards_libraries.rb'"
2929
echo ""
30-
echo "Then you should use 'openstudio developper/ruby/UpdateOSMVersions.rb' to version translate the rest of the OSM files."
30+
echo "Then you should use 'openstudio developer/ruby/UpdateOSMVersions.rb' to version translate the rest of the OSM files."

CMake/install_codesign_script_OpenStudioApp.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ endif()
100100

101101
set(FILES_TO_SIGN
102102
EnergyPlus/ExpandObjects
103-
EnergyPlus/energyplus-24.2.0
103+
EnergyPlus/energyplus-25.1.0
104104
EnergyPlus/energyplus.1
105-
EnergyPlus/libenergyplusapi.24.2.0.dylib
105+
EnergyPlus/libenergyplusapi.25.1.0.dylib
106106
EnergyPlus/libintl.8.dylib
107107
EnergyPlus/libpython3.12.dylib
108108
Ruby/openstudio.bundle

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(CCACHE_PROGRAM)
1616
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_PROGRAM} CACHE FILEPATH "C compiler cache used")
1717
endif()
1818

19-
project(OpenStudioApplication VERSION 1.9.0)
19+
project(OpenStudioApplication VERSION 1.10.0)
2020

2121
# Check system info globally so we can use it everywhere after: Has to be done before FindOpenStudioSDK.cmake
2222
if(APPLE)
@@ -272,7 +272,7 @@ endif()
272272

273273
# TODO: Modify the more specific variables as needed to indicate prerelease, etc
274274
# Keep in beta in-between release cycles. Set to empty string (or comment out) for official)
275-
set(PROJECT_VERSION_PRERELEASE "")
275+
set(PROJECT_VERSION_PRERELEASE "rc1")
276276

277277
# OpenStudio version: Only include Major.Minor.Patch, eg "3.0.0", even if you have a prerelease tag
278278
set(OPENSTUDIOAPPLICATION_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
@@ -400,6 +400,9 @@ if(UNIX)
400400
# Note: CMAKE_CXX_STANDARD (with no extensions) already sets -std=c++17 (or std=c++1z).
401401
if(APPLE)
402402
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
403+
# TODO: workaround for #5398, remove when updating boost
404+
AddCXXFlagIfSupported(-Wno-enum-constexpr-conversion COMPILER_SUPPORTS_enum_constexpr_conversion) # Clang 16.0+ and Apple Clang 15+ only
405+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
403406
endif()
404407
endif()
405408

FindOpenStudioSDK.cmake

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
set(OPENSTUDIO_VERSION_MAJOR 3)
2-
set(OPENSTUDIO_VERSION_MINOR 9)
2+
set(OPENSTUDIO_VERSION_MINOR 10)
33
set(OPENSTUDIO_VERSION_PATCH 0)
44
set(OPENSTUDIO_VERSION "${OPENSTUDIO_VERSION_MAJOR}.${OPENSTUDIO_VERSION_MINOR}.${OPENSTUDIO_VERSION_PATCH}")
55

66
#If this is an official release, leave this "", otherwise put for eg '-rc1'
77
set(OPENSTUDIO_VERSION_PRERELEASE "")
88
# Enter SHA, always, eg "+79857912c4"
9-
set(OPENSTUDIO_VERSION_SHA "+c77fbb9569")
9+
set(OPENSTUDIO_VERSION_SHA "+86d7e215a1")
1010

1111
# Paths where the cmake-downloaded archives will be put
1212
set(OPENSTUDIO_ARCHIVE_DIR "${PROJECT_BINARY_DIR}/OpenStudio-${OPENSTUDIO_VERSION}")
@@ -17,32 +17,32 @@ set(OPENSTUDIO_EXT "tar.gz")
1717
if(APPLE)
1818
set(OPENSTUDIO_PLATFORM "Darwin-${ARCH}")
1919
if(ARCH MATCHES "arm64")
20-
set(OPENSTUDIO_EXPECTED_HASH b373b0f23b529f9764464aae13725558)
20+
set(OPENSTUDIO_EXPECTED_HASH b412f1cd6ab6747c75dece567291e81e)
2121
else()
22-
set(OPENSTUDIO_EXPECTED_HASH 39c5ae27eeb840472e36b728ab906315)
22+
set(OPENSTUDIO_EXPECTED_HASH 00d0321aa6c4ab5a3c36fe2335a07157)
2323
endif()
2424

2525
elseif(UNIX)
2626
set(OPENSTUDIO_PLATFORM "${LSB_RELEASE_ID_SHORT}-${LSB_RELEASE_VERSION_SHORT}-${ARCH}")
2727
if(LSB_RELEASE_VERSION_SHORT MATCHES "24.04")
2828
#set(OPENSTUDIO_PLATFORM "${LSB_RELEASE_ID_SHORT}-22.04-${ARCH}")
2929
if (ARCH MATCHES "arm64")
30-
set(OPENSTUDIO_EXPECTED_HASH 4c35af3cc4e8d7b1aed2dd98b678a243)
30+
set(OPENSTUDIO_EXPECTED_HASH b4f328e0b28a479c55a338e87dac254f)
3131
else()
32-
set(OPENSTUDIO_EXPECTED_HASH 256d18d2d7036883823f2aeae180dfaa)
32+
set(OPENSTUDIO_EXPECTED_HASH 92c3407f888731d6da30b0a7b49d0f5c)
3333
endif()
3434
elseif(LSB_RELEASE_VERSION_SHORT MATCHES "22.04")
3535
if (ARCH MATCHES "arm64")
36-
set(OPENSTUDIO_EXPECTED_HASH fd1ba05628eb55b3bb72923a8395e267)
36+
set(OPENSTUDIO_EXPECTED_HASH d1ae86bba822eeb0541a7603e81a4074)
3737
else()
38-
set(OPENSTUDIO_EXPECTED_HASH 67522b9a1ba5749cf0b3cf101a6131cf)
38+
set(OPENSTUDIO_EXPECTED_HASH 209820bd2f9b487f0d0f4d4df311753f)
3939
endif()
4040
else()
4141
message(FATAL_ERROR "OpenStudio SDK no longer provides packages for Ubuntu 20.04 or older")
4242
endif()
4343

4444
elseif(WIN32)
45-
set(OPENSTUDIO_EXPECTED_HASH c3a1ec4bc98d7418780a702036ce0edb)
45+
set(OPENSTUDIO_EXPECTED_HASH afd101545253e8e7ba17b7b88c0556a2)
4646
set(OPENSTUDIO_PLATFORM "Windows")
4747
endif()
4848

developer/ruby/export_openstudio_standards_libraries.rb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,17 @@ def export_openstudio_standards_libraries
8484
templates = templates - missing_czs
8585
end
8686

87+
pkg_dir = "#{__dir__}/pkg"
88+
Dir.mkdir(pkg_dir) unless Dir.exist?(pkg_dir)
89+
osm_lib_dir = "#{pkg_dir}/libraries"
90+
Dir.mkdir(osm_lib_dir) unless Dir.exist?(osm_lib_dir)
91+
8792
# templates = templates_to_climate_zones.keys
8893
# Make a library model for each template
8994
# We parallelize this loop, since it takes really long
9095
# Note: You DO want to use in_processes here, and not in_threads!
9196
Parallel.each(templates, in_processes: $nproc, progress: 'Exporting openstudio-standards templates') do |template_name|
97+
#templates.each do |template_name|
9298

9399
# Wrap each library creation in a begin/rescue because
94100
# the entire process can take a long time and
@@ -464,10 +470,10 @@ def export_openstudio_standards_libraries
464470
std_applier.space_type_apply_rendering_color(space_type)
465471

466472
# Loads
467-
std_applier.space_type_apply_internal_loads(space_type, true, true, true, true, true, true)
473+
std_applier.space_type_apply_internal_loads(space_type, true, true, true, true, true)
468474

469475
# Schedules
470-
std_applier.space_type_apply_internal_load_schedules(space_type, true, true, true, true, true, true, true)
476+
std_applier.space_type_apply_internal_load_schedules(space_type, true, true, true, true, true, true)
471477

472478
end
473479
end
@@ -505,10 +511,6 @@ def export_openstudio_standards_libraries
505511
end
506512

507513
# Save the library
508-
pkg_dir = "#{__dir__}/pkg"
509-
Dir.mkdir(pkg_dir) unless Dir.exists?(pkg_dir)
510-
osm_lib_dir = "#{pkg_dir}/libraries"
511-
Dir.mkdir(osm_lib_dir) unless Dir.exists?(osm_lib_dir)
512514
library_path = "#{osm_lib_dir}/#{template_name.gsub(/\W/,'_')}.osm"
513515
puts "* Saving library #{library_path}"
514516
model.save(OpenStudio::Path.new(library_path), true)
@@ -526,7 +528,7 @@ def export_openstudio_standards_libraries
526528
rescue Exception => exc
527529
STDERR.puts "\e[0;31;49mERROR creating '#{template_name}', skipping to next template.\e[0m"
528530
STDERR.puts "#{exc}"
529-
STDERR.puts "Backtrace:\n\t#{exc.caller.join("\n\t")}"
531+
#STDERR.puts "Backtrace:\n\t#{exc.caller.join("\n\t")}"
530532
STDERR.puts "Backtrace:\n\t#{exc.backtrace.join("\n\t")}"
531533

532534
# Save the log messages for debugging library creation even on failure

signatures/version1/cla.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@
7979
"created_at": "2024-05-08T05:25:34Z",
8080
"repoId": 174587908,
8181
"pullRequestNo": 713
82+
},
83+
{
84+
"name": "antonszilasi",
85+
"id": 8773483,
86+
"comment_id": 2689617806,
87+
"created_at": "2025-02-28T03:13:26Z",
88+
"repoId": 174587908,
89+
"pullRequestNo": 791
8290
}
8391
]
8492
}

0 commit comments

Comments
 (0)