Use DevX action #34
Workflow file for this run
This file contains 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: Haskell-CI | |
on: | |
- push | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup DevX | |
uses: input-output-hk/actions/devx@latest | |
with: | |
platform: 'x86_64-linux' | |
compiler-nix-name: 'ghc962' | |
minimal: false | |
iog: true | |
- name: Cache DevX | |
uses: actions/cache@v3 | |
with: | |
path: /nix | |
- name: Check Nix env | |
shell: devx {0} | |
run: "echo 'Running in DevX" | |
- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cabal/packages | |
~/.cabal/store | |
dist-newstyle | |
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- | |
- name: Cabal build and test | |
shell: devx {0} | |
run: | | |
cabal build | |
cabal test |