Add cabal update to CI #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GHC-WPC CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: github.ref != 'refs/heads/master' | ||
steps: | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- name: Nix channel update | ||
run: nix-channel --update | ||
- name: Cabal install | ||
run: nix-env -iA cabal-install -f '<nixpkgs>' | ||
- name: Cabal update | ||
run: cabal update | ||
- name: Build external-stg-interpreter | ||
run: nix-shell -p ghc -p bzip2.dev -p zlib.dev --run 'cabal build external-stg-interpreter' | ||
- name: Test external-stg-interpreter | ||
run: nix-shell -p 'haskellPackages.ghcWithPackages (p: with p; [ hspec-discover ])' --run 'cabal test external-stg-interpreter' | ||