Skip to content

Commit

Permalink
workflows: use Nix.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottia committed Aug 28, 2023
1 parent b4e72bb commit 6740154
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ jobs:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: stack build
- run: stack test
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build and test
run: nix build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ cabal.config
stack.yaml.lock
.stack-work/
dist-newstyle
/result
/result-*

0 comments on commit 6740154

Please sign in to comment.