9898 ruby-version : ' 3.2.2'
9999 bundler-cache : false # We manage gems manually via openstudio_meta
100100
101- - name : Download and Install OpenStudio
102- shell : powershell
103- run : |
104- $Version = "${{ env.OPENSTUDIO_VERSION }}"
105- $Ext = "${{ env.OPENSTUDIO_VERSION_EXT }}"
106- $Sha = "${{ env.OPENSTUDIO_VERSION_SHA }}"
107- $InstallerName = "OpenStudio-$Version$Ext+$Sha-Windows.exe"
108- $Url = "https://github.com/NREL/OpenStudio/releases/download/v$Version$Ext/$InstallerName"
109-
110- Write-Host "Downloading $Url..."
111- Invoke-WebRequest -Uri $Url -OutFile $InstallerName
112-
113- Write-Host "Installing OpenStudio..."
114- Start-Process -FilePath ".\$InstallerName" -ArgumentList "/S /D=C:\projects\openstudio" -Wait
115-
116- # Verify
117- $env:Path = "C:\projects\openstudio\bin;$env:Path"
118- openstudio openstudio_version
119-
120- - name : Setup MSYS2 and Dependencies
101+ - name : Setup Windows Environment
121102 shell : cmd
122- run : |
123- ridk install 2 3
124-
125- REM Mimic setup.cmd gcc installation if needed, but standard ruby setup usually suffices.
126- REM Checking gcc version
127- gcc --version
103+ run : ci\github-actions\setup_win.bat
128104
129105 - name : Build Gem Package
130106 shell : cmd
@@ -134,19 +110,7 @@ jobs:
134110 GEM_PATH : C:\projects\openstudio-server\gems;C:\projects\openstudio-server\gems\bundler\gems
135111 RUBYLIB : C:\projects\openstudio\Ruby
136112 OPENSTUDIO_TEST_EXE : C:\projects\openstudio\bin\openstudio.exe
137- run : |
138- REM Create export directory
139- mkdir C:\export
140-
141- REM Install Bundler
142- gem install bundler -v %BUNDLE_VERSION% --no-document
143-
144- REM Run Build
145- ruby bin\openstudio_meta install_gems --export="C:\export" --debug
146-
147- REM Move export to workspace for upload
148- mkdir build\NREL
149- move C:\export build\NREL\export
113+ run : ci\github-actions\export_build_win.bat
150114
151115 - name : Upload Windows Artifact
152116 uses : actions/upload-artifact@v4
0 commit comments