Skip to content

Commit

Permalink
Install GAMS so that ixmp can find it (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 authored Feb 21, 2025
1 parent d9b9b68 commit 42ef4e1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
# pull_request:
# branches: [ main ]

env:
# First version including a macOS arm64 distribution
GAMS_VERSION: 43.4.1

jobs:
conda:
strategy:
Expand Down Expand Up @@ -56,6 +60,20 @@ jobs:
f.write(f"profile={profile}\n")
shell: python

- name: Cache GAMS installer
uses: actions/cache@v4
with:
path: |
gams
key: ${{ matrix.os }}-gams${{ env.GAMS_VERSION }}
restore-keys: |
${{ matrix.os }}-
- uses: iiasa/actions/setup-gams@main
with:
version: ${{ env.GAMS_VERSION }}
license: ${{ secrets.GAMS_LICENSE }}

- name: Initialize shell for "conda activate"
run: conda init ${{ steps.shell.outputs.init }}

Expand Down

0 comments on commit 42ef4e1

Please sign in to comment.