1
0
Fork 0
mirror of https://github.com/malob/prefmanager.git synced 2024-12-14 11:57:49 +00:00

Add legacy Nix, and stack builds to CI

This commit is contained in:
Malo Bourgon 2021-01-29 13:58:39 -08:00
parent afa6afe94e
commit 1d79242787
2 changed files with 17 additions and 7 deletions

View file

@ -1,4 +1,4 @@
name: "Nix Build and Cache"
name: "Build and Cache"
on:
pull_request:
push:
@ -22,8 +22,19 @@ jobs:
name: malo
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Build and cache
- name: Nix Flakes
run: |
nix build .
nix run . -- --help
nix develop .
nix --print-build-logs build .
nix --print-build-logs run . -- --help
nix --print-build-logs develop . --print-build-logs
- name: Nix Legacy
run: |
nix-build default.nix
nix-shell shell.nix
- name: Stack
run: |
stack build
stack purge
nix-shell shell.nix --run 'stack --nix build'

View file

@ -1,6 +1,5 @@
{ ghc }:
with import (import ./default.nix).inputs.nixpkgs {};
haskell.lib.buildStackProject {
inherit ghc;
ghc = haskell.compiler.ghc8103;
name = "prefmanager";
}