Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable GAMS in CI #159

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ jobs:

# ---------- Install GAMS

# - name: Install GAMS
# run: |
# curl https://d37drm4t2jghv5.cloudfront.net/distributions/44.1.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
# 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/
# env:
# GAMS_LICENSE: ${{ secrets.GAMS_LICENSE }}
- name: Install GAMS
run: |
curl https://d37drm4t2jghv5.cloudfront.net/distributions/44.1.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
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/
env:
GAMS_LICENSE: ${{ secrets.GAMS_LICENSE }}

# ---------- Run tool, check for regressions

Expand All @@ -96,6 +96,7 @@ jobs:
source .venv/bin/activate
export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams44.1_linux_x64_64_sfx
(python utils/run_benchmarks.py benchmarks.yml \
--dd --times_dir $GITHUB_WORKSPACE/TIMES_model \
--verbose \
| tee out.txt; \
echo ${PIPESTATUS[0]} > retcode.txt)
Expand Down