Skip to content

Update CI to use new devenv flake #271

Update CI to use new devenv flake

Update CI to use new devenv flake #271

Workflow file for this run

---
name: Build
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
haskell:
strategy:
matrix:
os:
- macos-13 # x86_64-darwin
# - macos-latest # aarch64-darwin
# - ubuntu-latest # x86_64-linux
fail-fast: true
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v16
with:
extra-conf: accept-flake-config = true
- name: Setup devenv binary cache
uses: cachix/cachix-action@v15
with:
name: devenv
- name: Install devenv
run: nix-env -if https://github.com/cachix/devenv/archive/refs/tags/v1.3.1.tar.gz
- name: Enter devenv shell
run: nix develop --no-pure-eval
- name: Update Cabal list of known packages.
run: nix develop --no-pure-eval -c cabal update
- name: Compile code ${{ matrix.ghc }}
run: nix develop --no-pure-eval -c cabal build
- name: Run tests ${{ matrix.ghc }}
run: nix develop --no-pure-eval -c cabal test
docker:
uses: ./.github/workflows/reusable-docker.yml
with:
push: false