Skip to content

Remove all non-calc business (#1) #4

Remove all non-calc business (#1)

Remove all non-calc business (#1) #4

name: LLVM calculator - build
on:
push:
branches:
- trunk
paths:
- "llvm-calc/**"
- "llvm-calc2/**"
- "llvm-calc3/**"
- "llvm-calc4/**"
- "vendored/**"
- "cabal.project"
- "cabal.project.freeze"
pull_request:
branches:
- trunk
paths:
- "llvm-calc/**"
- "llvm-calc2/**"
- "llvm-calc3/**"
- "llvm-calc4/**"
- "vendored/**"
- "cabal.project"
- "cabal.project.freeze"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "14.0"
- name: Cache cabal global package db
id: cabal-global
uses: actions/cache@v3
with:
path: ~/.cabal
key: ${{ runner.os }}-2-llvm-calc-cabal-global-${{ matrix.plan.ghc }}-${{ hashFiles('**.freeze') }}
restore-keys: |
${{ runner.os }}-2-llvm-calc-cabal-global-${{ matrix.plan.ghc }}
- name: Cache .cabal-work
uses: actions/cache@v3
with:
path: dist-newstyle
key: ${{ runner.os }}-2-llvm-calc-cabal-work-${{ matrix.plan.ghc }}-${{ hashFiles('**.freeze') }}
restore-keys: |
${{ runner.os }}-2-llvm-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 llvm-calc
run: make test-llvm-calc
- name: Test llvm-calc2
run: make test-llvm-calc2
- name: Test llvm-calc3
run: make test-llvm-calc3
- name: Test llvm-calc4
run: make test-llvm-calc4