try again
This commit is contained in:
parent
46f7ef70e2
commit
5ea8d9b57a
1 changed files with 19 additions and 7 deletions
|
|
@ -12,21 +12,33 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: haskell:9.10 # Official Haskell image with GHC 9.10 + Cabal preinstalled
|
image: fpco/stack-build:lts-24.11
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Node.js (for actions)
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
|
apt-get install -y nodejs
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Check versions
|
- name: Check versions
|
||||||
run: |
|
run: |
|
||||||
ghc --version
|
ghc --version
|
||||||
cabal --version
|
cabal --version
|
||||||
|
stack --version
|
||||||
|
node --version
|
||||||
|
|
||||||
# Manual caching with volumes (act-friendly)
|
- name: Cache Cabal packages
|
||||||
- name: Cache Cabal store
|
uses: https://github.com/actions/cache@v4
|
||||||
run: |
|
with:
|
||||||
mkdir -p ~/.cabal/packages ~/.cabal/store
|
path: |
|
||||||
cabal update
|
~/.cabal/packages
|
||||||
|
~/.cabal/store
|
||||||
|
dist-newstyle
|
||||||
|
key: ${{ runner.os }}-stackage-lts22-cabal-${{ hashFiles('**/*.cabal', '**/cabal.project') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-stackage-lts22-cabal-
|
||||||
|
|
||||||
- name: Update Cabal package index
|
- name: Update Cabal package index
|
||||||
run: cabal update
|
run: cabal update
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue