Skip to content

Commit

Permalink
ci: try adding cabal update
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Oct 22, 2024
1 parent b04ce35 commit f1b9b8f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,28 @@ jobs:
# key: ${{ steps.ghc-cabal-cache.outputs.cache-primary-key }}

- name: Configure the build
run: |
run:
docker run \
-v "${PWD}":/mnt/ \
-v "${HOME}/.cabal/packages":/root/.cache/cabal/packages \
-v "${HOME}/.cabal/store":/root/.local/state/cabal/store \
-v "${PWD}/dist-newstyle":/mnt/dist-newstyle \
ghcr.io/spex-lang/static-build:9.6.6 \
configure --enable-tests --enable-benchmarks --disable-documentation --project-dir=/mnt

# XXX: this shouldn't be necessary, already done in image...
- name: Run cabal update
run:
docker run \
-v "${PWD}":/mnt/:ro \
-v "${HOME}/.cabal/packages":/root/.cache/cabal/packages \
-v "${HOME}/.cabal/store":/root/.local/state/cabal/store \
-v "${PWD}/dist-newstyle":/mnt/dist-newstyle \
ghcr.io/spex-lang/static-build:9.6.6 \
update hackage.haskell.org,2024-10-21T00:00:00Z

- name: Build the cache key
run:
docker run \
-v "${PWD}":/mnt/:ro \
-v "${HOME}/.cabal/packages":/root/.cache/cabal/packages \
Expand Down

0 comments on commit f1b9b8f

Please sign in to comment.