Skip to content

Commit

Permalink
fix: bash variable expansion correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
maxemiliang committed Apr 7, 2024
1 parent 9c175f8 commit b37251e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-workflow.yml
Expand Up @@ -178,7 +178,7 @@ jobs:
version_without_dot=$(echo $version | tr -d .)
echo "GUROBI_SHORT_VERSION=$major_minor" >> $GITHUB_ENV
echo "GUROBI_VERSION_WITHOUT_DOT=$version_without_dot" >> $GITHUB_ENV
echo "GRB_INSTALL_PATH=${{ github.workspace }}/ThirdParty/gurobi$version_without_dot" >> $GITHUB_ENV
echo "GRB_INSTALL_PATH=${{ github.workspace }}/ThirdParty/gurobi${version_without_dot}" >> $GITHUB_ENV
# Then we download and install Gurobi
- name: Download Gurobi
Expand Down Expand Up @@ -208,8 +208,8 @@ jobs:
version=${{ env.GAMS_VERSION }}
major_minor=$(echo $version | awk -F '.' '{print $1 "." $2}')
echo "GAMS_SHORT_VERSION=$major_minor" >> $GITHUB_ENV
echo "GAMS_INSTALL_PATH=${{ github.workspace }}/ThirdParty/gams$major_minor_linux_x64_64_sfx" >> $GITHUB_ENV
echo "GAMS_LICENSE_FILE=${{ github.workspace }}/ThirdParty/gams$major_minor_linux_x64_64_sfx/gamslice.txt" >> $GITHUB_ENV
echo "GAMS_INSTALL_PATH=${{ github.workspace }}/ThirdParty/gams${major_minor}_linux_x64_64_sfx" >> $GITHUB_ENV
echo "GAMS_LICENSE_FILE=${{ github.workspace }}/ThirdParty/gams${major_minor}_linux_x64_64_sfx/gamslice.txt" >> $GITHUB_ENV
# Next, we set up GAMS
# Download GAMS
Expand Down

0 comments on commit b37251e

Please sign in to comment.