Skip to content

Commit 281703d

Browse files
committed
fix: Pin libtorch home in CI.
1 parent 2e00bda commit 281703d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
ghc-version: ${{ matrix.ghc }}
2424
cabal-version: latest
2525

26+
- name: Set LIBTORCH_HOME
27+
run: echo "LIBTORCH_HOME=$HOME/.cache/libtorch" >> $GITHUB_ENV
28+
2629
- name: Configure
2730
run: |
2831
cat > cabal.project <<EOF
@@ -38,7 +41,9 @@ jobs:
3841
- name: Cache
3942
uses: actions/cache@v4
4043
with:
41-
path: ${{ steps.setup.outputs.cabal-store }}
44+
path: |
45+
${{ steps.setup.outputs.cabal-store }}
46+
${{ env.LIBTORCH_HOME }}
4247
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
4348
restore-keys: ${{ runner.os }}-ghc-${{ matrix.ghc }}-
4449

0 commit comments

Comments
 (0)