Skip to content

Commit

Permalink
fix: Use the correct way to get the version to build the paths
Browse files Browse the repository at this point in the history
  • Loading branch information
maxemiliang committed Apr 7, 2024
1 parent 9b0dab0 commit 9c175f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
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${{ env.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${{ env.GAMS_SHORT_VERSION }}_linux_x64_64_sfx" >> $GITHUB_ENV
echo "GAMS_LICENSE_FILE=${{ github.workspace }}/ThirdParty/gams${{ env.GAMS_SHORT_VERSION }}_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 9c175f8

Please sign in to comment.