mirror of
https://github.com/google/ormolu.git
synced 2024-12-02 23:43:34 +03:00
6b73283246
* Point to more recent nixpkgs commit. This fixes build issue with python 3.7.3 (only on darwin?). * Separate shell.nix and default.nix. This is so that lorri can be used for development. * Add nix output to .gitignore. * Format *.nix using nixfmt. * Use gitignore for filtering files in nix derivation.
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
version: 2
|
|
|
|
jobs:
|
|
build_ghc864:
|
|
docker:
|
|
- image: nixos/nix:2.1.3
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Add ca-certificates
|
|
command: |
|
|
apk --no-progress update
|
|
apk --no-progress add ca-certificates
|
|
- 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: |
|
|
if [ -n "$CACHIX_SIGNING_KEY" ];
|
|
then nix-store -qR --include-outputs $(nix-instantiate default.nix) | cachix push tweag;
|
|
fi
|
|
- run:
|
|
name: Build the package (includes running the tests)
|
|
command: nix-build
|
|
- run:
|
|
name: Generate Haddocks
|
|
command: nix-build --attr ormolu.doc
|
|
- store_artifacts:
|
|
path: result-doc/share/doc
|
|
destination: haddock
|
|
|
|
workflows:
|
|
version: 2
|
|
build:
|
|
jobs:
|
|
- build_ghc864:
|
|
context: org-global
|