Skip to content

Commit 9b64a9d

Browse files
Merge pull request haskell-nix#10 from Anton-Latukha/2020-07-07-solidify-work-02
Solidify work
2 parents 1692d7f + ae14e89 commit 9b64a9d

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

.github/workflows/Nixpkgs-GHCJS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Nixpkgs, GHCJS, Linux"
1+
name: "Nixpkgs, Linux, GHCJS"
22

33
on:
44
pull_request:

.github/workflows/Nixpkgs-Linux-main.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ on:
1515

1616
env:
1717
###
18-
### NOTE: This configuration uses `build.sh` interface, which uses `default.nix` interface, which exposes the Nixpkgs Haskell Lib interface.
18+
### NOTE: Table example of the provided build configuration keys
19+
### Infrastructure uses `build.sh` API, which uses `default.nix` API, which exposes the almost literal Nixpkgs Haskell Lib API wich was abstracted for use outside of Nix language.
1920
###
2021
### Documentation of this settings is mosly in `default.nix`, since most settings it Nixpkgs related
2122
### and the other part of keys explained in `build.sh`, since those address external procedures aound the builds.
@@ -67,54 +68,59 @@ jobs:
6768
- name: Determined nix-build
6869
run: ./build.sh
6970

71+
7072
# NOTE: Example of customization using Nixpkgs Haskell Lib API
7173
build20:
7274
name: "Release-quality test, SDist, Optimization, Benchmark, Haddock, GHC 8.10.1, Nix shell"
7375
runs-on: ubuntu-latest
74-
env:
75-
compiler: "ghc8101"
76-
buildFromSdist: "true"
77-
linkWithGold: "true"
78-
doHaddock: "true"
79-
doHyperlinkSource: "true"
80-
doBenchmark: "true"
81-
disableOptimization: "false"
82-
enableDeadCodeElimination: "true"
83-
generateOptparseApplicativeCompletions: "false"
8476
steps:
8577
- name: Git checkout
8678
uses: actions/checkout@v2
8779
- name: Install Nix
8880
uses: cachix/install-nix-action@v10
8981
- name: Determined nix-build
82+
env:
83+
compiler: "ghc8101"
84+
buildFromSdist: "true"
85+
linkWithGold: "true"
86+
doHaddock: "true"
87+
doHyperlinkSource: "true"
88+
disableOptimization: "false"
89+
enableDeadCodeElimination: "true"
90+
doBenchmark: "true"
91+
generateOptparseApplicativeCompletions: "false"
9092
run: ./build.sh
9193

94+
9295
# NOTE: Build on latest stable NixOS release
9396
build30:
9497
name: "NixOS 20.03 stable channel, default GHC (8.8.3)"
9598
runs-on: ubuntu-latest
96-
env:
97-
rev: "nixos-20.03"
9899
steps:
99100
- name: Git checkout
100101
uses: actions/checkout@v2
101102
- name: Install Nix
102103
uses: cachix/install-nix-action@v10
103104
- name: Determined nix-build
105+
env:
106+
rev: "nixos-20.03"
104107
run: ./build.sh
105108

109+
106110
# NOTE: This would additionally test that the Nix shell customization of the project works.
107111
# By default *this setup provides local hoogle and generates database of project documentation
108112
build40:
109-
name: "Test Nix-shell"
113+
name: "Nix-shell & supplied locall Hoogle DB"
110114
runs-on: ubuntu-latest
111115
steps:
112116
- name: Git checkout
113117
uses: actions/checkout@v2
114118
- name: Install Nix
115119
uses: cachix/install-nix-action@v10
116-
- name: Test Nix-shell
117-
run: nix-shell --command 'echo "Evaluated, loaded and entered $IN_NIX_SHELL Nix shell env."\n\n"Testing local Hoogle DB:" && hoogle True'
120+
- name: Nix-shell
121+
run: nix-shell --command 'echo "Evaluated, loaded and entered $IN_NIX_SHELL Nix shell env."'
122+
- name: Project Hoogle DB by Nix-shell
123+
run: nix-shell --command 'hoogle True'
118124

119125

120126
# Other samples of tests used in the project see in the directory

0 commit comments

Comments
 (0)