From 9d239b1d805defd5c7ab18b00017353e85052e23 Mon Sep 17 00:00:00 2001 From: Christopher Sasarak Date: Thu, 29 Aug 2024 10:50:24 -0500 Subject: [PATCH] Logic for LinuxARM cabal store. --- .github/workflows/build-all.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index 5cb1108729..575d8a84f4 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -127,14 +127,13 @@ jobs: with: args: ./.github/workflows/scripts/compute_cache_key.sh ${{ runner.os }} ${{ matrix.project-file }} - - name: print stuff - run: echo "Home dotfiles out of container $(ls -al ~/.*)" - - # Build FOSSA CLI. + # The home directory inside a github container run during a step is different than one run outside of it. + # This is why there is special logic for 'LinuxARM'. + # Its builds run inside a container but are cached by an action outside of it.. - uses: actions/cache@v4 name: Cache cabal store with: - path: ${{ steps.setup-haskell.outputs.cabal-store || '~/.local/state/cabal' }} + path: ${{ steps.setup-haskell.outputs.cabal-store || ( matrix.os == 'LinuxARM' && format('{0}/_github_home/.local/state/cabal', runner.temp) || '~/.local/state/cabal') }} key: ${{ matrix.os-name }}-${{ matrix.ghc }}-cabal-cache-${{ steps.compute-cache-key.outputs.cabal-cache-key || steps.compute-cache-key-arm.outputs.cabal-cache-key }} restore-keys: | ${{ matrix.os-name }}-${{ matrix.ghc }}-cabal-cache-