Skip to content

Commit

Permalink
fix: Fixed an issue with getting the short version of GAMS and Gurobi…
Browse files Browse the repository at this point in the history
… from the workflow
  • Loading branch information
maxemiliang committed Apr 6, 2024
1 parent aa5a597 commit 013ed53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:
id: get_version
run: |
version=${{ env.GUROBI_VERSION }}
major_minor=$(echo ${version%%.*})
major_minor=$(echo version | awk -F '.' '{print $1 "." $2}')
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
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
id: get_gams_short_version
run: |
version=${{ env.GAMS_VERSION }}
major_minor=$(echo ${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
Expand Down

0 comments on commit 013ed53

Please sign in to comment.