Skip to content

Commit

Permalink
Merge pull request #1196 from NREL/actions-config-updates
Browse files Browse the repository at this point in the history
Update CI config with OS env vars
  • Loading branch information
joseph-robertson committed Jan 23, 2024
2 parents 0666a3a + 37f005d commit f0df344
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
types: [ synchronize, opened ]
workflow_dispatch:

env:
OPENSTUDIO_VER: "3.7.0"
OPENSTUDIO_SHA: "d5269793f1"
OPENSTUDIO_PLATFORM: "Ubuntu-20.04-x86_64"
OPENSTUDIO_EXT: "deb"

jobs:
format-files:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -137,8 +143,9 @@ jobs:

- name: Download and Install OpenStudio
run: |
wget -q https://github.com/NREL/OpenStudio/releases/download/v3.7.0/OpenStudio-3.7.0+d5269793f1-Ubuntu-20.04-x86_64.deb
sudo apt install -y ./OpenStudio-3.7.0+d5269793f1-Ubuntu-20.04-x86_64.deb
export OS_DEBFILE="OpenStudio-$OPENSTUDIO_VER+$OPENSTUDIO_SHA-$OPENSTUDIO_PLATFORM.$OPENSTUDIO_EXT"
wget -q https://github.com/NREL/OpenStudio/releases/download/v$OPENSTUDIO_VER/$OS_DEBFILE
sudo apt install -y ./$OS_DEBFILE
openstudio openstudio_version
which openstudio
Expand Down

0 comments on commit f0df344

Please sign in to comment.