parent
ce85733722
commit
1efe165ef3
4 changed files with 7 additions and 10 deletions
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
|
@ -15,6 +15,9 @@ jobs:
|
|||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||
# Srid's cache; leaving disabled for template use.
|
||||
# trusted-public-keys = cache.srid.ca:8sQkbPrOIoXktIwI0OucQBXod2e9fDjjoEZWn8OXbdo=
|
||||
# substituters = https://cache.srid.ca
|
||||
- name: Cache Nix dependencies
|
||||
run: |
|
||||
nix develop -j 4 -c echo
|
||||
|
|
|
@ -20,14 +20,13 @@ For details, see: https://srid.ca/haskell-template/start
|
|||
## Tips
|
||||
|
||||
- Run `nix flake update` to update all flake inputs.
|
||||
- Run `nix --option sandbox false build .#check -L` to run the flake checks.
|
||||
- Run `nix build .#check -L` to run the flake checks.
|
||||
- Run `, fmt` in nix shell to autoformat the project. This uses [treefmt](https://github.com/numtide/treefmt).
|
||||
- Run `, docs` to start Hoogle with packages in your cabal file.
|
||||
- Run the application without installing: `nix run github:srid/haskell-template` (or `nix run .` from checkout)
|
||||
- Common workflows
|
||||
- Adding library dependencies in Nix: https://srid.ca/haskell-template/dependency
|
||||
- Adding tests: https://srid.ca/haskell-template/tests
|
||||
- Adding Garnix CI: https://srid.ca/haskell-template/garnix
|
||||
|
||||
## Discussions
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
treefmt = config.treefmt.build.wrapper;
|
||||
} // config.treefmt.build.programs;
|
||||
# overrides = self: super: {}
|
||||
hlsCheck.enable = true;
|
||||
hlsCheck.enable = false;
|
||||
hlintCheck.enable = true;
|
||||
};
|
||||
|
||||
|
@ -91,6 +91,8 @@
|
|||
devShells.default =
|
||||
config.mission-control.installToDevShell self'.devShells.main;
|
||||
};
|
||||
|
||||
# CI configuration
|
||||
flake.herculesCI.ciSystems = [ "x86_64-linux" "aarch64-darwin" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
builds:
|
||||
include:
|
||||
- "*.aarch64-darwin.*"
|
||||
- "*.x86_64-linux.*"
|
||||
exclude:
|
||||
# https://github.com/srid/haskell-flake/issues/21
|
||||
- "checks.*.main-hls"
|
Loading…
Reference in a new issue