Skip to content

Commit

Permalink
check dir existence
Browse files Browse the repository at this point in the history
  • Loading branch information
jneira committed Dec 21, 2021
1 parent 310e09d commit 0910a80
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ jobs:
[ -d $CABAL_DIR ] && ls $CABAL_DIR/packages/hackage.haskell.org
[ -f $CABAL_DIR/config ] && cat $CABAL_DIR/config
echo "Content of /c/sr/ghc-${{ matrix.ghc }}"
ls /c/sr
ls /c/sr/ghc-${{ matrix.ghc }}
echo "Trace keys for computing package StateVar hash"
cat /c/sr/ghc-${{ matrix.ghc }}/StateVar*/cabal-hash.txt
if [ -d "/c/sr/ghc-${{ matrix.ghc }}" ]; then
ls /c/sr
ls /c/sr/ghc-${{ matrix.ghc }}
echo "Trace keys for computing package StateVar hash"
cat /c/sr/ghc-${{ matrix.ghc }}/StateVar*/cabal-hash.txt
fi
- run: cabal update -v3

Expand All @@ -167,10 +169,12 @@ jobs:
- if: runner.os == 'Windows'
name: Trace cabal cache after build
run: |
echo "Content of /c/sr/ghc-${{ matrix.ghc }}"
ls -la /c/sr/ghc-${{ matrix.ghc }}
echo "Trace keys for computing package StateVar hash"
cat /c/sr/ghc-${{ matrix.ghc }}/StateVar*/cabal-hash.txt
if [ -d "/c/sr/ghc-${{ matrix.ghc }}" ]; then
echo "Content of /c/sr/ghc-${{ matrix.ghc }}"
ls -la /c/sr/ghc-${{ matrix.ghc }}
echo "Trace keys for computing package StateVar hash"
cat /c/sr/ghc-${{ matrix.ghc }}/StateVar*/cabal-hash.txt
fi
- name: Set test options
run: |
Expand Down

0 comments on commit 0910a80

Please sign in to comment.