Skip to content

Merge pull request #1 from danieljharvey/djh/sort-ci #5

Merge pull request #1 from danieljharvey/djh/sort-ci

Merge pull request #1 from danieljharvey/djh/sort-ci #5

name: WASM calculator - build
on:
push:
branches:
- trunk
paths:
- "wasm-calc/**"
- "cabal.project"
- "cabal.project.freeze"
pull_request:
branches:
- trunk
paths:
- "wasm-calc/**"
- "cabal.project"
- "cabal.project.freeze"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Cache cabal global package db
id: cabal-global
uses: actions/cache@v3
with:
path: ~/.cabal
key: ${{ runner.os }}-2-wasm-calc-cabal-global-${{ matrix.plan.ghc }}-${{ hashFiles('**.freeze') }}
restore-keys: |
${{ runner.os }}-2-wasm-calc-cabal-global-${{ matrix.plan.ghc }}
- name: Cache .cabal-work
uses: actions/cache@v3
with:
path: dist-newstyle
key: ${{ runner.os }}-2-wasm-calc-cabal-work-${{ matrix.plan.ghc }}-${{ hashFiles('**.freeze') }}
restore-keys: |
${{ runner.os }}-2-wasm-calc-cabal-work-${{ matrix.plan.ghc }}
- uses: haskell/actions/setup@v2
with:
ghc-version: '9.6.2'
cabal-version: '3.10.1.0'
- name: Test wasm-calc
run: make test-wasm-calc