-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub ci with nix cachix stack and cabal (#76)
* Nix flake file for dev work & CI builds * Add CI workflow * Update the Nix Flake for building with GHC 8.10.x and Cabal Install * Add a Nix Flake for building with Stack & GHC 8.8 * Add a GitHub CI workflow to build with both legacy stack & cabal * ignore cabal & nix build directories
- Loading branch information
Showing
6 changed files
with
774 additions
and
0 deletions.
There are no files selected for viewing
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,28 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v16 | ||
with: | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
substituters = https://hydra.iohk.io https://cache.nixos.org/ | ||
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | ||
- uses: cachix/cachix-action@v10 | ||
with: | ||
name: scarf | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
extraPullNames: cachix,iohk,nix-community | ||
- run: nix build | ||
- run: nix develop --command /usr/bin/env -- bash -c 'hpack && cabal --ghc-options="-Wall -Wcompat -Werror" test' | ||
- run: nix build ./.stack-flake | ||
- run: nix develop ./.stack-flake --command /usr/bin/env -- bash -c 'hpack && cabal --ghc-options="-Wall -Wcompat -Werror" test' |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.stack-work/ | ||
curl-runnings.cabal | ||
*~ | ||
dist-newstyle/ | ||
result |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.