Skip to content

Commit

Permalink
Fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
metab0t committed Jan 25, 2024
1 parent eaac3b9 commit 4f6ba59
Showing 1 changed file with 8 additions and 38 deletions.
46 changes: 8 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,23 @@ jobs:
run: |
New-Item -ItemType Directory -Force -Path "D:\installers"
- name: Cache Gurobi Installer
id: cache-gurobi-windows
- name: Cache Installers
id: cache-installers-windows
uses: actions/cache@v3
env:
cache-name: cache-gurobi-windows
cache-name: cache-installers-windows
with:
path: D:\installers
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('gurobi.msi') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.msi', '**/*.zip') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- if: ${{ steps.cache-gurobi-windows.outputs.cache-hit != 'true' }}
name: Download Gurobi Installer
- if: ${{ steps.cache-installers-windows.outputs.cache-hit != 'true' }}
name: Download Installers
run: |
curl -L -o D:\installers\gurobi.msi https://packages.gurobi.com/11.0/Gurobi-11.0.0-win64.msi
curl -L -o D:\installers\copt.zip https://pub.shanshu.ai/download/copt/7.0.6/win64/CardinalOptimizer-7.0.6-win64.zip
curl -L -o D:\installers\mosek.msi https://download.mosek.com/stable/10.1.22/moseksetupwin64x86.msi
- name: Setup Gurobi Installation
run: |
Expand All @@ -62,22 +64,6 @@ jobs:
echo "PATH=$env:PATH;D:\SourceDir\gurobi1100\win64\bin" >> $env:GITHUB_ENV
echo $env:GUROBI_HOME
- name: Cache COPT Installer
id: cache-copt-windows
uses: actions/cache@v3
env:
cache-name: cache-copt-windows
with:
path: D:\installers
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('copt.zip') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- if: ${{ steps.cache-copt-windows.outputs.cache-hit != 'true' }}
name: Download COPT Installer
run: |
curl -L -o D:\installers\copt.zip https://pub.shanshu.ai/download/copt/7.0.6/win64/CardinalOptimizer-7.0.6-win64.zip
- name: Setup COPT Installation
run: |
# unzip with 7zip
Expand All @@ -88,22 +74,6 @@ jobs:
echo "PATH=$env:PATH;D:\copt70\bin" >> $env:GITHUB_ENV
echo $env:COPT_HOME
- name: Cache MOSEK Installer
id: cache-mosek-windows
uses: actions/cache@v3
env:
cache-name: cache-mosek-windows
with:
path: D:\installers
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('mosek.msi') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- if: ${{ steps.cache-mosek-windows.outputs.cache-hit != 'true' }}
name: Download MOSEK Installer
run: |
curl -L -o D:\installers\mosek.msi https://download.mosek.com/stable/10.1.22/moseksetupwin64x86.msi
- name: Setup MOSEK Installation
run: |
lessmsi x D:\installers\mosek.msi "D:\" mosek64_10_1.dll mosek64_10_1.lib
Expand Down

0 comments on commit 4f6ba59

Please sign in to comment.