-
Notifications
You must be signed in to change notification settings - Fork 483
34 lines (28 loc) · 1.02 KB
/
cabal-build-all.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This job runs `cabal build all` on Linux with all supported GHC versions.
# Normally, if Nix can build the shell and the packages via haskell.nix, we can be confident that
# Cabal can build the project inside the Nix shell.
# However, this workflow is implemented to catch edge cases, such as the one described in
# https://github.com/IntersectMBO/plutus/issues/6625.
#
# This job runs on all pull requests and on push to master, and it can also be triggered manually.
name: "👷 Cabal Build All"
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: [plutus-ci, self-hosted]
strategy:
matrix:
ghc: [ghc810, ghc910, ghc96, ghc98]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@main
- name: Cold Build / ${{ matrix.ghc }} / x86_64-linux
run: |
nix develop --no-warn-dirty --accept-flake-config .#${{ matrix.ghc }} \
--command bash -c 'cabal clean && cabal update && cabal build all'