2018-11-25 16:34:28 +03:00
|
|
|
version: 2
|
2019-05-27 23:20:09 +03:00
|
|
|
|
2018-11-25 16:34:28 +03:00
|
|
|
jobs:
|
2019-05-27 23:20:09 +03:00
|
|
|
build_ghc864:
|
2018-11-25 16:34:28 +03:00
|
|
|
docker:
|
2019-05-27 23:20:09 +03:00
|
|
|
- image: nixos/nix:2.1.3
|
2018-11-25 16:34:28 +03:00
|
|
|
steps:
|
|
|
|
- checkout
|
2019-05-27 23:20:09 +03:00
|
|
|
- run:
|
|
|
|
name: Setup Cachix
|
|
|
|
command: |
|
|
|
|
nix-env -f nix/nixpkgs/ -iA cachix
|
|
|
|
USER=dummy cachix use tweag
|
|
|
|
- run:
|
|
|
|
name: Build environment
|
|
|
|
command: |
|
|
|
|
nix-shell --pure --run :
|
|
|
|
- run:
|
|
|
|
name: Push Cachix
|
|
|
|
command: |
|
|
|
|
nix-store -qR --include-outputs $(nix-instantiate default.nix) | cachix push tweag
|
|
|
|
- run:
|
|
|
|
name: Build the package (includes running the tests)
|
|
|
|
command: nix-build
|
2018-11-25 16:34:28 +03:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
2019-05-27 23:20:09 +03:00
|
|
|
- build_ghc864:
|
|
|
|
context: org-global
|