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: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
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
|
- name: Cache Nix dependencies
|
||||||
run: |
|
run: |
|
||||||
nix develop -j 4 -c echo
|
nix develop -j 4 -c echo
|
||||||
|
|
|
@ -20,14 +20,13 @@ For details, see: https://srid.ca/haskell-template/start
|
||||||
## Tips
|
## Tips
|
||||||
|
|
||||||
- Run `nix flake update` to update all flake inputs.
|
- 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 `, 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 `, 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)
|
- Run the application without installing: `nix run github:srid/haskell-template` (or `nix run .` from checkout)
|
||||||
- Common workflows
|
- Common workflows
|
||||||
- Adding library dependencies in Nix: https://srid.ca/haskell-template/dependency
|
- Adding library dependencies in Nix: https://srid.ca/haskell-template/dependency
|
||||||
- Adding tests: https://srid.ca/haskell-template/tests
|
- Adding tests: https://srid.ca/haskell-template/tests
|
||||||
- Adding Garnix CI: https://srid.ca/haskell-template/garnix
|
|
||||||
|
|
||||||
## Discussions
|
## Discussions
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
treefmt = config.treefmt.build.wrapper;
|
treefmt = config.treefmt.build.wrapper;
|
||||||
} // config.treefmt.build.programs;
|
} // config.treefmt.build.programs;
|
||||||
# overrides = self: super: {}
|
# overrides = self: super: {}
|
||||||
hlsCheck.enable = true;
|
hlsCheck.enable = false;
|
||||||
hlintCheck.enable = true;
|
hlintCheck.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -91,6 +91,8 @@
|
||||||
devShells.default =
|
devShells.default =
|
||||||
config.mission-control.installToDevShell self'.devShells.main;
|
config.mission-control.installToDevShell self'.devShells.main;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# CI configuration
|
||||||
flake.herculesCI.ciSystems = [ "x86_64-linux" "aarch64-darwin" ];
|
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