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:
parent
afa6afe94e
commit
1d79242787
2 changed files with 17 additions and 7 deletions
|
@ -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'
|
|
@ -1,6 +1,5 @@
|
|||
{ ghc }:
|
||||
with import (import ./default.nix).inputs.nixpkgs {};
|
||||
haskell.lib.buildStackProject {
|
||||
inherit ghc;
|
||||
ghc = haskell.compiler.ghc8103;
|
||||
name = "prefmanager";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue