2023-11-08 17:44:21 +03:00
|
|
|
# Code generated by dhall-to-yaml. DO NOT EDIT.
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: "GHC ${{ matrix.ghc }}, Cabal ${{ matrix.cabal }}, OS ${{ matrix.os }}"
|
|
|
|
"runs-on": "${{ matrix.os }}"
|
|
|
|
steps:
|
2024-07-27 20:53:37 +03:00
|
|
|
- uses: "cachix/install-nix-action@v27"
|
2023-11-08 17:44:21 +03:00
|
|
|
with:
|
|
|
|
nix_path: "nixpkgs=channel:nixos-unstable"
|
2024-07-27 20:53:37 +03:00
|
|
|
- uses: "cachix/cachix-action@v15"
|
2023-11-29 17:08:47 +03:00
|
|
|
with:
|
|
|
|
name: "hnix-store"
|
|
|
|
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
|
2023-11-08 17:44:21 +03:00
|
|
|
- uses: "actions/checkout@v4"
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- id: "setup-haskell-cabal"
|
|
|
|
uses: "haskell-actions/setup@v2"
|
|
|
|
with:
|
|
|
|
"cabal-version": "${{ matrix.cabal }}"
|
|
|
|
"ghc-version": "${{ matrix.ghc }}"
|
|
|
|
- name: Update Hackage repository
|
|
|
|
run: cabal update
|
|
|
|
- name: cabal.project.local.ci
|
|
|
|
run: |
|
|
|
|
if [ -e cabal.project.local.ci ]; then
|
|
|
|
cp cabal.project.local.ci cabal.project.local
|
|
|
|
fi
|
|
|
|
- name: freeze
|
|
|
|
run: "cabal freeze --enable-tests --enable-benchmarks"
|
2024-07-27 20:53:37 +03:00
|
|
|
- uses: "actions/cache@v4"
|
2023-11-08 17:44:21 +03:00
|
|
|
with:
|
|
|
|
key: "${{ matrix.os }}-${{ matrix.ghc }}-${{ matrix.cabal}}-${{ hashFiles('cabal.project.freeze') }}"
|
|
|
|
path: |
|
|
|
|
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
|
|
|
|
dist-newstyle
|
|
|
|
- name: Install dependencies
|
|
|
|
run: "cabal build all --enable-tests --enable-benchmarks --only-dependencies"
|
|
|
|
- name: build all
|
|
|
|
run: "cabal build all --enable-tests --enable-benchmarks"
|
|
|
|
- name: test all
|
|
|
|
run: "cabal test all --enable-tests"
|
|
|
|
- name: Build with Nix
|
2023-11-19 11:06:07 +03:00
|
|
|
run: "nix-build --argstr compiler $(echo ghc${{ matrix.ghc }} | tr -d '.')"
|
2023-11-08 17:44:21 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
cabal:
|
2024-07-27 20:53:37 +03:00
|
|
|
- '3.12'
|
2023-11-08 17:44:21 +03:00
|
|
|
ghc:
|
2024-07-27 20:53:37 +03:00
|
|
|
- '9.8.2'
|
|
|
|
- '9.6.6'
|
2023-11-08 17:44:21 +03:00
|
|
|
os:
|
|
|
|
- "ubuntu-latest"
|
|
|
|
- "macos-latest"
|
|
|
|
name: Haskell CI
|
|
|
|
'on':
|
2023-12-13 11:26:30 +03:00
|
|
|
pull_request: {}
|
2023-11-08 17:44:21 +03:00
|
|
|
push: {}
|