-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
inferno
cache and switch CI to build with Nix (#24)
Closes #21 There are some instructions in the readme on how to enable the new Inferno cache for local development. CI will now build with Nix and push the artifacts to the cache. If you configure the cache locally you can pull them, making most Nix rebuilds much faster. CI jobs will generally be faster. They'll only be slower (albeit considerably slower) when large updates happen with dependencies (e.g. a new haskell.nix revision) I also disabled HLS in the dev shells (this is unrelated to the changes in this PR but I discovered it while making the changes here; see #25 for more details)
- Loading branch information
Showing
4 changed files
with
134 additions
and
104 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 300 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v18 | ||
with: | ||
extra_nix_config: | | ||
substituters = https://cache.nixos.org https://cache.iog.io | ||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= | ||
- uses: cachix/cachix-action@v8 | ||
with: | ||
name: inferno | ||
authToken: "${{ secrets.CACHIX_TOKEN }}" | ||
- run: | | ||
nix build -L .# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters