From bb5e3d947ff1df1809ec4c124a29814a545b239c Mon Sep 17 00:00:00 2001 From: Olexandr Balyk Date: Mon, 11 Nov 2024 13:51:48 -0500 Subject: [PATCH 1/2] Update GAMS version --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a59d07e..78945f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,12 +79,12 @@ jobs: GAMS_LICENSE: ${{ secrets.GAMS_LICENSE }} if: ${{ env.GAMS_LICENSE != '' }} run: | - curl https://d37drm4t2jghv5.cloudfront.net/distributions/44.1.0/linux/linux_x64_64_sfx.exe -o linux_x64_64_sfx.exe + curl https://d37drm4t2jghv5.cloudfront.net/distributions/48.2.0/linux/linux_x64_64_sfx.exe -o linux_x64_64_sfx.exe chmod +x linux_x64_64_sfx.exe mkdir GAMS pushd GAMS ../linux_x64_64_sfx.exe > /dev/null && echo Successfully installed GAMS - export PATH=$PATH:$(pwd)/gams44.1_linux_x64_64_sfx + export PATH=$PATH:$(pwd)/gams48.2_linux_x64_64_sfx popd echo Creating license file at $HOME/.local/share/GAMS mkdir -p $HOME/.local/share/GAMS @@ -111,7 +111,7 @@ jobs: # Save the return code to retcode.txt so that the next step can fail the action run: | source .venv/bin/activate - export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams44.1_linux_x64_64_sfx + export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams48.2_linux_x64_64_sfx (python utils/run_benchmarks.py benchmarks.yml \ --dd --times_dir $GITHUB_WORKSPACE/TIMES_model \ --verbose \ @@ -127,7 +127,7 @@ jobs: # Useful for testing for (CSV) regressions in forks before creating PRs. run: | source .venv/bin/activate - export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams44.1_linux_x64_64_sfx + export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams48.2_linux_x64_64_sfx (python utils/run_benchmarks.py benchmarks.yml \ --times_dir $GITHUB_WORKSPACE/TIMES_model \ --verbose \ From 982dbc44d4f5f04ef899642d88054757c16d9dfe Mon Sep 17 00:00:00 2001 From: Siddharth Krishna Date: Sun, 17 Nov 2024 12:14:18 +0200 Subject: [PATCH 2/2] Use Gams' inbuilt demo license instead --- .github/workflows/ci.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8620083..2d4c06d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,10 +90,6 @@ jobs: ../linux_x64_64_sfx.exe > /dev/null && echo Successfully installed GAMS export PATH=$PATH:$(pwd)/gams48.2_linux_x64_64_sfx popd - echo Creating license file at $HOME/.local/share/GAMS - mkdir -p $HOME/.local/share/GAMS - echo "$GAMS_LICENSE" > $HOME/.local/share/GAMS/gamslice.txt - ls -l $HOME/.local/share/GAMS/ # ---------- Run tool, check for regressions @@ -131,7 +127,6 @@ jobs: # Useful for testing for (CSV) regressions in forks before creating PRs. run: | source .venv/bin/activate - export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams48.2_linux_x64_64_sfx (python utils/run_benchmarks.py benchmarks.yml \ --times_dir $GITHUB_WORKSPACE/TIMES_model \ --verbose \