Skip to content
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

Merge to master for 1.7.0 #652

Merged
merged 192 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
444f74a
Fix the crash in schedules view
macumber Jul 23, 2023
c1e6878
Use local results measure if remote bcl is not working
macumber Aug 8, 2023
5179bbc
Add search bard to OSCollapsibleItemList
macumber Aug 9, 2023
07d3bb3
Clang format
macumber Aug 9, 2023
adddb72
Add comment and update for const correctness
macumber Aug 20, 2023
7b96f2a
Address review comments
macumber Aug 20, 2023
b732836
Merge pull request #614 from openstudiocoalition/fix-schedule-crash-613
jmarrec Aug 21, 2023
5f2df36
Merge pull request #618 from openstudiocoalition/search_bar
jmarrec Aug 21, 2023
4ad7bac
Add new icons + (Button / ButtonItem) for expanding system / Going ba…
jmarrec Aug 22, 2023
4151c25
Use the new Button / ButtonIcon in VRF
jmarrec Aug 22, 2023
d7030cd
Add zooming the display in VRF
jmarrec Aug 22, 2023
ac38cbd
Refactor the display of the control buttons (hide them when not appro…
jmarrec Aug 22, 2023
e7018b0
Allow zooming with CTRL + WheelUp/Down or CTRL + '+' / '-'
jmarrec Aug 22, 2023
89d78ae
Try out some brew commands
macumber Aug 26, 2023
e59b57f
Try @jmarrec's suggestion
macumber Aug 26, 2023
30bb0fc
Try exporting to GITHUB_ENV
macumber Aug 26, 2023
41cea3f
Remove OpenSSL from pkgconfig
macumber Aug 27, 2023
bbfd20b
Add comment
macumber Aug 27, 2023
d4318f6
Restore rest of CI
macumber Aug 27, 2023
11a0f14
Merge pull request #624 from openstudiocoalition/fix_mac_ci
macumber Aug 27, 2023
3d48cf4
Fix #482 - Add icon + Policy to hide nodes for SwimmingPool:Indoor
jmarrec Aug 21, 2023
6532a51
Add SwimmingPoolIndoor to the HVAC Library. Since this requires a val…
jmarrec Aug 21, 2023
4392233
Rename to be more specific
jmarrec Aug 28, 2023
5cf2194
clang format after grep xargs sed combo
jmarrec Aug 28, 2023
74f5d2b
Merge pull request #621 from openstudiocoalition/482_SwimmingPool
jmarrec Aug 28, 2023
bc897d8
Merge pull request #622 from openstudiocoalition/560_Zoom_VRF_Refrige…
jmarrec Aug 28, 2023
4d6b059
Fix #238 - Implement filtering on the Output Variables tab
jmarrec Aug 22, 2023
c9f04a2
Add a Frequency setter for all visible variables via a Modal OSDialog
jmarrec Aug 22, 2023
d7e3020
Adjust layout a bit
jmarrec Aug 22, 2023
2ceef91
cppcheck
jmarrec Aug 28, 2023
2e0377c
Merge pull request #623 from openstudiocoalition/238_filterOutputVari…
jmarrec Aug 28, 2023
402e5f4
Update to latest nightly build of OpenStudio SDK
jmarrec Aug 28, 2023
22ea6ee
Bump swig to 4.1.0 to match OS SDK (and won't build without this)
jmarrec Aug 28, 2023
53af86b
Merge pull request #627 from openstudiocoalition/update_sdk_370_alpha
jmarrec Aug 28, 2023
f997a04
Extract the inline jS from geometry_preview.html into separate files.…
jmarrec Apr 14, 2023
ab8a57f
The qrc:/ isn't needed! And it works locally too
jmarrec Apr 14, 2023
6d322f9
Add instructions for running geometry preview from outside the App
jmarrec Apr 14, 2023
f47a689
Update dat.gui and TweenLite to latest (Note: GSAP 3.x has API breaki…
jmarrec Apr 14, 2023
03ced7e
Add separate entry points `runFromJSON` and `runFromFile`
jmarrec Apr 14, 2023
1f287b6
TweenLite min wasn't the minified version
jmarrec Aug 29, 2023
6aee38e
Merge pull request #628 from openstudiocoalition/geometry_refactor
jmarrec Aug 29, 2023
d26d80f
Implement new geometry diagnostics
jmarrec Mar 31, 2023
d909aba
Make geometry diagnostics opt-in to follow suit with the SDK PR
jmarrec Apr 5, 2023
8fa124b
Use geometry diagnostics in the generate_sample_data
jmarrec Aug 28, 2023
8b53dcf
Tweaks to output variable tab
macumber Sep 6, 2023
fbc6265
Clang format
macumber Sep 6, 2023
c79f27d
Alternative 4 with requested change
jmarrec Sep 7, 2023
adbd297
Hide entire diagnostics when unclicked
jmarrec Sep 7, 2023
d23b02d
Merge pull request #630 from openstudiocoalition/geometry_diagnostics…
jmarrec Sep 8, 2023
8c6a6e0
Merge remote-tracking branch 'origin/develop' into update_variables_l…
macumber Sep 9, 2023
90b9647
Skip tgz package for MacOs, possible issue with MacOS GitHub runner u…
macumber Sep 9, 2023
502d777
Merge pull request #631 from openstudiocoalition/update_variables_layout
macumber Sep 10, 2023
e4e4b10
track latest OS SDK develop: measure manager + E+ 23.2.0 official
jmarrec Oct 2, 2023
e590d1d
DistrictHeating was renamed to DistrictHeatingWater
jmarrec Oct 2, 2023
e7440de
Write a script to validate the OpenStudioPolicy and catch outdated fi…
jmarrec Oct 2, 2023
d0062a8
Simply reformat the policy file by opening with ruby Oga and saving a…
jmarrec Oct 2, 2023
347d17d
Use the script to LOCK a few curves
jmarrec Oct 2, 2023
f6459de
Add sha for windows tar.gz
jmarrec Oct 3, 2023
afafcd2
Merge pull request #635 from openstudiocoalition/bump_sdk_eplus_v23.2…
jmarrec Oct 5, 2023
9642936
Update to OpenStudio 3.7.0-rc1
jmarrec Oct 18, 2023
02a54d0
Merge pull request #636 from openstudiocoalition/os-370-rc1
jmarrec Oct 19, 2023
cf2f6e8
Disable TLS_VERIFY for conan cmake for windows CI runner
jmarrec Oct 27, 2023
b3618fc
Merge pull request #637 from openstudiocoalition/windows-TLS-conan
jmarrec Oct 27, 2023
2b8694c
Fix #638 - Make links clickable for measure descriptions
jmarrec Nov 8, 2023
020eae2
Merge pull request #639 from openstudiocoalition/638-make_argument_li…
jmarrec Nov 17, 2023
9dda2f6
Install the OpenStudio Results measure as a backup to the BCL
macumber Nov 23, 2023
8bdaf68
Add the results measure
macumber Nov 23, 2023
bb90b54
Fix bug when cloning a story with windows
macumber Nov 23, 2023
5a78f4b
Update to release version and shas
macumber Nov 23, 2023
f729d43
Merge pull request #644 from openstudiocoalition/update-v370
jmarrec Nov 23, 2023
85c7e19
Merge pull request #642 from openstudiocoalition/install-results-measure
jmarrec Nov 23, 2023
74a331d
Bump the application version
macumber Nov 23, 2023
54256dc
Merge remote-tracking branch 'remotes/origin/develop' into update-v370
macumber Nov 23, 2023
fab236f
Add rc1 [ci skip]
jmarrec Nov 24, 2023
508a2fb
Merge pull request #645 from openstudiocoalition/update-v370
jmarrec Nov 24, 2023
a8a1afd
Merge remote-tracking branch 'remotes/origin/develop' into floorspace…
macumber Nov 24, 2023
8c797cc
update combo box
eringold Nov 28, 2023
f65e006
Remove E+ 23.2.0 choices that OS 3.7.0 is missing with a TODO
jmarrec Dec 11, 2023
2be851c
Adding minified output from updated build scripts
macumber Dec 18, 2023
000fda4
Try using the github hosted macos-13 runners
macumber Dec 18, 2023
74e2952
Fix warnings/errors in actions
macumber Dec 18, 2023
a0a5d5b
Update the matrix
macumber Dec 18, 2023
f5ace69
Try to fix macos-12 build
macumber Dec 19, 2023
73ffc0b
Connect to CLI at localhost instead of 127.0.0.1
macumber Dec 19, 2023
fcbf16b
Try the classic command
macumber Dec 21, 2023
1b845aa
Seems the new measure manager is sensitive to the content type header
macumber Dec 21, 2023
f7673d0
Update OSM versions
macumber Dec 21, 2023
5f22afb
Merge pull request #648 from openstudiocoalition/update_versions
macumber Dec 21, 2023
ca4d511
This seems to be working for the measure manager
macumber Dec 22, 2023
9c7b27b
Update version of FloorspaceJS and add missing data to import
macumber Dec 23, 2023
e5679e7
Fix clang format
macumber Dec 23, 2023
b08e3c6
Merge pull request #643 from openstudiocoalition/floorspace_clone_w_w…
jmarrec Dec 23, 2023
2e0dd7d
Update to Qt 6.6.1
macumber Dec 23, 2023
e7cbdb7
Fix issue on Windows build
macumber Dec 23, 2023
5e524db
Remove change to classic CLI
jmarrec Dec 23, 2023
436ddda
Avoid build error due to boost 1.79 on modern mac
jmarrec Dec 23, 2023
b6a32a3
WIP supporting python measures.
jmarrec Aug 16, 2023
6ff0a71
cpprestsdk is much more stringent on the ContentTypeHeader: should be…
jmarrec Aug 16, 2023
2d817c3
Cleanup QNetwork call prep. Use actual QJsonObjects instead of doing …
jmarrec Aug 16, 2023
f909928
Shorten payload by removing formatting.
jmarrec Aug 23, 2023
a6dfce7
New env variable `OPENSTUDIO_APPLICATION_USE_LOCAL_MEASURE_MANAGER_PO…
jmarrec Aug 23, 2023
7709d7a
Deal with 3.7.0 having C++ CLI as default
jmarrec Dec 23, 2023
0edee85
Merge remote-tracking branch 'remotes/origin/develop' into use-macos-…
macumber Dec 23, 2023
ff19edf
Go back to self hosted macos-arm64
macumber Dec 23, 2023
4119586
Merge remote-tracking branch 'remotes/origin/use-macos-13-runners' in…
macumber Dec 23, 2023
7f6a91c
Revert change to classic CLI
macumber Dec 23, 2023
769a6d3
Fix apparent bug caught by cppcheck
macumber Dec 23, 2023
1c88581
Merge pull request #647 from openstudiocoalition/use-macos-13-runners
macumber Dec 23, 2023
1fb9fff
Merge pull request #650 from openstudiocoalition/qt_6_6
macumber Dec 23, 2023
2ba730a
Merge remote-tracking branch 'origin/develop' into PythonMeasures
macumber Dec 23, 2023
b50b847
Quit instead of crash if measure manager isn't starting. Reset defau…
macumber Dec 24, 2023
1ef7e1b
Reverse logic and change use labs to use classic CLI
macumber Dec 24, 2023
d85434e
Clang format
macumber Dec 24, 2023
a39da21
Add pop up warning to restart the app when changing cli option
macumber Dec 24, 2023
31ef539
Only allow creating Ruby measures with classic CLI
macumber Dec 25, 2023
379b140
Merge pull request #651 from openstudiocoalition/PythonMeasures
macumber Dec 25, 2023
3d3d913
Merge branch 'master' into develop
macumber Dec 25, 2023
12b4e52
Re-enable tar.gz for MacOS
macumber Dec 25, 2023
4f32d57
Merge pull request #654 from openstudiocoalition/mac_targz
macumber Dec 26, 2023
0858a4d
Merge pull request #646 from eringold/fix_mech_vent_method
jmarrec Jan 5, 2024
cb93815
First stab at supporting new CLI output
macumber Jan 3, 2024
0bdbe02
Remove clang format temp files
macumber Jan 3, 2024
cf86d1f
More tweaks
macumber Jan 4, 2024
e483b7d
Clang format
macumber Jan 4, 2024
40322fd
Add socket back in for classic CLI and small tweaks
macumber Jan 8, 2024
49a11e7
Make Python install by default
macumber Jan 8, 2024
de53c1b
Remove redundant bool (+ lint / const correctness)
jmarrec Jan 8, 2024
3b16cb7
cppcheck
jmarrec Jan 8, 2024
919f4ec
Filter out a C++ CLI line
jmarrec Jan 8, 2024
a1f218a
Merge pull request #662 from openstudiocoalition/cli_output
jmarrec Jan 8, 2024
9d3293e
Start a CLI tester workflow
jmarrec Jan 9, 2024
2f4e7fa
Bump actions
jmarrec Jan 9, 2024
2d2d1a1
Bump setup-python to v5
jmarrec Jan 9, 2024
5f8fd02
tweak
jmarrec Jan 9, 2024
325ccd2
Tweak
jmarrec Jan 9, 2024
e9cc170
Use the zip/tar.gz and implement the cli tests
jmarrec Jan 9, 2024
5f35269
bash quotes?
jmarrec Jan 9, 2024
9424b72
tweaky tweaky tweak
jmarrec Jan 9, 2024
0ad05ec
Tweak tweaky tweak tweaky
jmarrec Jan 9, 2024
ab315e8
tweakkkkyyyy tweaaak
jmarrec Jan 9, 2024
850d5cc
List all contents recursively
macumber Jan 10, 2024
51c28a3
specifically test on pwsh for windows
jmarrec Jan 10, 2024
91914c6
try copying python38.dll to bin/ on windows
jmarrec Jan 10, 2024
84d4f3d
revert workarounds/debugs and add lib inspect + tree
jmarrec Jan 10, 2024
669acc9
tweak display structure
jmarrec Jan 10, 2024
24642a6
Tweak inspect_lib calls
jmarrec Jan 10, 2024
a30e99e
ubuntu: expandobjects is statically linked properly
jmarrec Jan 10, 2024
b22bb47
Merge pull request #666 from openstudiocoalition/cli_test
jmarrec Jan 10, 2024
200fb81
Adjust location of libruby/libpythonengine to root/lib (for macOS)
jmarrec Jan 8, 2024
cec72a2
Windows doesn't have RPATH handling: CLI libs go in bin/ (like OpenSt…
jmarrec Jan 9, 2024
e0d672a
Attempt at fixing the layout while removing duplicated CLI and libs o…
jmarrec Jan 9, 2024
37c2b75
python38.dll is needed in bin/ (from OS SDK, which has it) [ci skip]
jmarrec Jan 10, 2024
d624b34
Merge pull request #664 from openstudiocoalition/657-Libs_reorder
jmarrec Jan 11, 2024
9e71d8b
Try to debug cpack
jmarrec Jan 10, 2024
e587d65
Try to improve app_build: redo caching, add ccache
jmarrec Jan 10, 2024
3e059e5
Redo cache keys (nested templates)
jmarrec Jan 10, 2024
9ae7f26
Use latest conan 1.x instead of 1.59.0 + don't cache conan on self ho…
jmarrec Jan 10, 2024
0cd62da
adjsut conan user home: github.workspace in matrix is nil appparently
jmarrec Jan 11, 2024
ecd7333
Debug why hashFiles fails now
jmarrec Jan 11, 2024
a915633
ok: github.workspace != runner.workspace, and hashFiles only works in…
jmarrec Jan 11, 2024
429a37e
tweak
jmarrec Jan 11, 2024
7e6f18b
try quoting + backslash on windoze
jmarrec Jan 11, 2024
b0c485b
Try to set ccache configuration to place stuff inside the build dir
jmarrec Jan 11, 2024
50388e1
Shush apt update + use restore-keys for conan cache: allow retrieving…
jmarrec Jan 11, 2024
c31adee
Clean conan build + source folders to reduce cache size when some rec…
jmarrec Jan 11, 2024
923426b
Try caching only ccache, not the entire build dir (only Qt install an…
jmarrec Jan 11, 2024
e2b06e7
See if ccache only manages to speed up build
jmarrec Jan 11, 2024
768df5b
Enable ccache on windows (DO NOT use RULE_LAUNCH_COMPILE on windows)
jmarrec Jan 11, 2024
28ccc2a
Install libxcb-cursor0 (Tests don't run on Ubuntu currently with this…
jmarrec Jan 11, 2024
50e1fdf
Pickup CCAche BEFORE conan
jmarrec Jan 11, 2024
7dc7967
Restore-keys is a prefix, so do it properly.
jmarrec Jan 11, 2024
bc39a90
More explicit hashFiles to prevent windoze error on post build
jmarrec Jan 11, 2024
734f992
Dummy CMakeLists + ConanInstall to test restore-key partial match whe…
jmarrec Jan 11, 2024
270dc56
Merge pull request #667 from openstudiocoalition/redo-app-build-caching
jmarrec Jan 11, 2024
c05fb36
Bad workaround for #659
jmarrec Jan 8, 2024
8fc96e2
Merge pull request #663 from openstudiocoalition/659-workaround
jmarrec Jan 11, 2024
8d5cd87
Set compressed extension
macumber Jan 21, 2024
e5ae1dd
Try using newer version of OpenSSL 1.1.1o recipe
macumber Jan 21, 2024
407b2d0
Only use newer recipe on Mac x86_64
macumber Jan 21, 2024
95ff379
Change to RC2
macumber Jan 21, 2024
d19b59c
Fix #673 - Adjust RPATH on ubuntu.
jmarrec Jan 22, 2024
8d4477d
Missing library libxcb-cursor0 for Ubuntu (reported in #673)
jmarrec Jan 22, 2024
e0b25fc
Fix #674 - Install v8 snapshot for qtwebengine to prevent crash on ge…
jmarrec Jan 22, 2024
27b1d32
Fix #675 - Add --remote-allow-origins=* to chromium flags
jmarrec Jan 22, 2024
20d8af9
Merge pull request #676 from openstudiocoalition/1.7.0-rc2-fixes
macumber Jan 22, 2024
cba85a9
Add a help menu item to debug webgl
macumber Jan 29, 2024
274e359
Temporarily change nrel remote to unsecured
macumber Jan 29, 2024
93f3509
Clang format
macumber Jan 29, 2024
0f3288e
Add signal to StartupMenu
macumber Jan 29, 2024
2e4d87d
Use chrome://gpu which gives more useful information
macumber Jan 29, 2024
ecf5e01
Undo temporary change
macumber Jan 30, 2024
45132f6
Merge pull request #677 from openstudiocoalition/debug_webgl
macumber Feb 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
526 changes: 196 additions & 330 deletions .github/workflows/app_build.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/check_osm_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

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

- uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release
uses: cla-assistant/github-action@v2.1.3-beta
uses: cla-assistant/github-action@v2.3.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clangformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Run clang-format against C++ files touched by the PR
shell: bash
Expand All @@ -19,7 +19,7 @@ jobs:

- name: Upload clang-format patch as artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: OpenStudioApplication-${{ github.sha }}-clang_format.patch
path: clang_format.patch
4 changes: 2 additions & 2 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install cppcheck
shell: bash
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Upload cppcheck results as artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenStudioApplication-${{ github.sha }}-cppcheck_results.txt
path: cppcheck.txt
4 changes: 2 additions & 2 deletions .github/workflows/export_standards_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
runs-on: ubuntu-18.04

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

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8.x'

Expand Down
220 changes: 220 additions & 0 deletions .github/workflows/manual_cli_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
name: Test OS SDK CLI from OpenStudio Application

on:
workflow_dispatch:
inputs:
run_id:
description: 'The github actions run_id where to find the artifacts'
required: true

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
# 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, windows-2022, macos-13, macos-arm64]
include:
- os: ubuntu-20.04
SELF_HOSTED: false
PLATFORM_NAME: Linux
BINARY_EXT: deb
COMPRESSED_EXT: tar.gz
- os: ubuntu-22.04
SELF_HOSTED: false
PLATFORM_NAME: Linux
BINARY_EXT: deb
COMPRESSED_EXT: tar.gz
- os: windows-2022
SELF_HOSTED: false
PLATFORM_NAME: Windows
BINARY_EXT: exe
COMPRESSED_EXT: zip
- os: macos-13
SELF_HOSTED: false
PLATFORM_NAME: Darwin
BINARY_EXT: dmg
COMPRESSED_EXT: tar.gz
MACOSX_DEPLOYMENT_TARGET: 10.15
- os: macos-arm64
SELF_HOSTED: true
PLATFORM_NAME: Darwin
BINARY_EXT: dmg
COMPRESSED_EXT: tar.gz
MACOSX_DEPLOYMENT_TARGET: 12.1

steps:
- name: Download binary installer
uses: actions/download-artifact@v4
id: downloader
with:
pattern: OpenStudioApplication-*-${{ matrix.os }}.${{ matrix.COMPRESSED_EXT }}
run-id: ${{ github.event.inputs.run_id}}
github-token: ${{ secrets.GITHUB_TOKEN }}
path: cli_tester
merge-multiple: true

- name: Install OSApp
working-directory: cli_tester
shell: bash
run: |
set -x
echo "steps.downloader.outputs.download-path=${{ steps.downloader.outputs.download-path }}"
ls -R

archive=$(ls *.${{ matrix.COMPRESSED_EXT }})
OSAPP_DIR_NAME=$(basename $archive .${{ matrix.COMPRESSED_EXT }})
echo "OSAPP_DIR_NAME=$OSAPP_DIR_NAME" >> $GITHUB_ENV
if [ "${{ matrix.COMPRESSED_EXT }}" == "tar.gz" ]; then
#OSAPP_DIR_NAME=$(tar tzf $archive | head -1 | cut -f1 -d"/")
tar xfz $archive
else
7z X $archive
fi

examples_dir=$(find $(pwd)/$OSAPP_DIR_NAME -name "Examples" -type d)
OSAPP_ROOT_DIR=$(dirname $examples_dir)

echo "OSAPP_ROOT_DIR=$OSAPP_ROOT_DIR" >> $GITHUB_ENV
echo "puts ARGV" > test.rb
echo "import sys" > test.py
echo "print(sys.argv)" >> test.py
ls
cp -R $examples_dir/compact_osw/* .

if [ ! -d "$OSAPP_ROOT_DIR" ]; then
echo "Directly does not exist! $OSAPP_ROOT_DIR"
exit 1
fi

if [ "$RUNNER_OS" == "Linux" ]; then
export PATH="$OSAPP_ROOT_DIR/bin:$PATH"
echo "$OSAPP_ROOT_DIR/bin" >> $GITHUB_PATH

elif [ "$RUNNER_OS" == "Windows" ]; then
export PATH="$OSAPP_ROOT_DIR/bin:$PATH"
echo "$OSAPP_ROOT_DIR/bin" >> $GITHUB_PATH

elif [ "$RUNNER_OS" == "macOS" ]; then
export PATH="$OSAPP_ROOT_DIR/OpenStudioApp.app/Contents/MacOS:$PATH"
echo "$OSAPP_ROOT_DIR/OpenStudioApp.app/Contents/MacOS" >> $GITHUB_PATH
fi

which openstudio
openstudio openstudio_version
if openstudio labs; then
echo "The Ruby CLI is the default"
echo CLASSIC_SUBCOMMAND= >> $GITHUB_ENV
echo LABS_SUBCOMMAND=labs >> $GITHUB_ENV
else
echo "The C++ CLI is the default"
echo CLASSIC_SUBCOMMAND=classic >> $GITHUB_ENV
echo LABS_SUBCOMMAND= >> $GITHUB_ENV
fi

- name: EnergyPlus itself works
working-directory: cli_tester
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
$OSAPP_ROOT_DIR/EnergyPlus/energyplus --help || ( echo "EnergyPlus missing dependencies!" && sudo apt install -y libgomp1 libx11-6 && $OSAPP_ROOT_DIR/EnergyPlus/energyplus --help )
else
$OSAPP_ROOT_DIR/EnergyPlus/energyplus --help
fi

- name: Classic Ruby CLI test
working-directory: cli_tester
shell: bash
run: |
set -x
openstudio $CLASSIC_SUBCOMMAND --help
openstudio $CLASSIC_SUBCOMMAND openstudio_version
openstudio $CLASSIC_SUBCOMMAND energyplus_version
openstudio $CLASSIC_SUBCOMMAND ruby_version
openstudio $CLASSIC_SUBCOMMAND -e "puts OpenStudio::Model::Model.new()"
openstudio $CLASSIC_SUBCOMMAND -e "require 'oga'; puts Oga::VERSION"
openstudio $CLASSIC_SUBCOMMAND execute_ruby_script test.rb -x arg2
openstudio $CLASSIC_SUBCOMMAND run -w compact_ruby_only.osw

- name: Labs C++ CLI Test
working-directory: cli_tester
shell: bash
run: |
set -x
openstudio $LABS_SUBCOMMAND --help
openstudio $LABS_SUBCOMMAND openstudio_version
openstudio $LABS_SUBCOMMAND energyplus_version
openstudio $LABS_SUBCOMMAND ruby_version
openstudio $LABS_SUBCOMMAND python_version
openstudio $LABS_SUBCOMMAND -e "puts OpenStudio::Model::Model.new()"
openstudio $LABS_SUBCOMMAND -e "require 'oga'; puts Oga::VERSION"
openstudio $LABS_SUBCOMMAND execute_ruby_script test.rb -x arg2
openstudio $LABS_SUBCOMMAND execute_python_script test.py -x arg2
openstudio $LABS_SUBCOMMAND run -w compact_ruby_only.osw
openstudio $LABS_SUBCOMMAND run -w compact_python_only_twomeasures.osw
openstudio $LABS_SUBCOMMAND run -w compact_ruby_then_python.osw
openstudio $LABS_SUBCOMMAND run -w compact_python_then_ruby.osw

- name: Display structure
if: ${{ always() && runner.os == 'Windows' }}
working-directory: cli_tester/${{ env.OSAPP_DIR_NAME }}
run: |
tree /f /a

- name: Display structure
if: ${{ always() && runner.os != 'Windows' }}
working-directory: ${{ env.OSAPP_ROOT_DIR }}
run: |
separator() {
echo -e "\n\033[0;31m===========================================================\033[0m"
};

if [ "$RUNNER_OS" == "macOS" ]; then
brew install tree
inspect_lib() {
separator
echo -e "\033[0;33m$1\033[0m"
otool -L $1
otool -l $1 | grep -A2 LC_RPATH || true
}
BUNDLE_EXT=bundle
SONAME=dylib
CLI_PREFIX=OpenStudioApp.app/Contents/MacOS
else
inspect_lib() {
separator
echo -e "\033[0;33m$1\033[0m"
ldd $1
objdump -x $1 | grep RUNPATH || true
}
BUNDLE_EXT=so
SONAME=so
CLI_PREFIX=bin
fi

tree -I 'Radiance|python_standard_lib|include'

inspect_lib $CLI_PREFIX/openstudio

inspect_lib lib/libopenstudiolib.$SONAME

inspect_lib lib/libpythonengine.so
inspect_lib lib/librubyengine.so

inspect_lib Python/_openstudiomodel.so
inspect_lib Ruby/openstudio.$BUNDLE_EXT

inspect_lib EnergyPlus/energyplus
inspect_lib EnergyPlus/libenergyplusapi.$SONAME
inspect_lib EnergyPlus/ExpandObjects || true


- name: cleanup
if: ${{ always() }}
shell: bash
run: |
rm -Rf ./cli_tester/ || true
rm -Rf ./OpenStudioApplication-*-${{ matrix.os }}.${{ matrix.BINARY_EXT }} || true
rm -Rf ./OpenStudioApplication-*-${{ matrix.os }}.${{ matrix.COMPRESSED_EXT }} || true
4 changes: 2 additions & 2 deletions .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
runs-on: ubuntu-latest

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

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8.x'

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ developer/msvc/Visualizers/all_concat.natvis
.clangd/
cppcheck.txt*
clang_format.patch
conan-cache
.ccache
5 changes: 5 additions & 0 deletions CMake/FixupBundleOverrides.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ function(gp_resolved_file_type_override file type)
if( file_lower MATCHES ".*concrt.*")
set(type "system" PARENT_SCOPE)
endif()
if( file_lower MATCHES ".*openstudiolib.*")
if(UNIX AND NOT APPLE)
set(type "system" PARENT_SCOPE)
endif()
endif()
endfunction()

Loading
Loading