Skip to content

Commit 7afc0bb

Browse files
Merge pull request haskell-nix#11 from Anton-Latukha/2020-07-07-badges
Badges, updates to "Nixpkgs, Linux, main" workflow, adding explicitness and descriptions
2 parents 9b64a9d + a429cbd commit 7afc0bb

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

.github/workflows/Nixpkgs-GHCJS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
uses: actions/checkout@v2
2828
- name: Install Nix
2929
uses: cachix/install-nix-action@v10
30-
- name: Determined nix-build
30+
- name: Determined Nix-build
3131
run: ./build.sh

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/checkout@v2
4040
- name: Install Nix
4141
uses: cachix/install-nix-action@v10
42-
- name: Determined nix-build
42+
- name: Determined Nix-build
4343
run: ./build.sh
4444

4545
build50:
@@ -53,7 +53,7 @@ jobs:
5353
uses: actions/checkout@v2
5454
- name: Install Nix
5555
uses: cachix/install-nix-action@v10
56-
- name: Determined nix-build
56+
- name: Determined Nix-build
5757
run: ./build.sh
5858

5959
build60:
@@ -67,5 +67,5 @@ jobs:
6767
uses: actions/checkout@v2
6868
- name: Install Nix
6969
uses: cachix/install-nix-action@v10
70-
- name: Determined nix-build
70+
- name: Determined Nix-build
7171
run: ./build.sh

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

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,19 @@ jobs:
5858

5959
# NOTE: Basic example
6060
build10:
61-
name: "NixOS-unstable channel, Strict build, default GHC (8.8.3)"
61+
name: "NixOS-unstable channel, default GHC (8.8.3)"
6262
runs-on: ubuntu-latest
6363
steps:
6464
- name: Git checkout
6565
uses: actions/checkout@v2
6666
- name: Install Nix
6767
uses: cachix/install-nix-action@v10
68-
- name: Determined nix-build
68+
- name: Determined Nix-build
69+
env:
70+
# nixos-unstable is a nixpkgs-upstable that passed a number of upstream CI and quality checks, it is essentially a current branch while also receives stable updates fitting for our CI checkups with current Nixpkgs.
71+
# Note that Nix nature is purely functional lazy language, it is referentially transparent, reproducible (deterministic) builds, that means that just as in the type system - any the Nix build failures properly cascade through the Nixpkgs tree graph branch, so particular `master` broken checkouts would properly refuse/would not be able to build parts of Nixpkgs tree graph. So the Nix builds are pretty brittle, do not be ashamed to make Nixpkgs builds optional (`continue-on-error: true`), or set them to the latest stable NixOS Nixpkgs release.
72+
useRev: "true"
73+
rev: "nixos-unstable"
6974
run: ./build.sh
7075

7176

@@ -78,8 +83,10 @@ jobs:
7883
uses: actions/checkout@v2
7984
- name: Install Nix
8085
uses: cachix/install-nix-action@v10
81-
- name: Determined nix-build
86+
- name: Determined Nix-build
8287
env:
88+
useRev: "true"
89+
rev: "nixos-unstable"
8390
compiler: "ghc8101"
8491
buildFromSdist: "true"
8592
linkWithGold: "true"
@@ -101,16 +108,16 @@ jobs:
101108
uses: actions/checkout@v2
102109
- name: Install Nix
103110
uses: cachix/install-nix-action@v10
104-
- name: Determined nix-build
111+
- name: Determined Nix-build
105112
env:
106113
rev: "nixos-20.03"
107114
run: ./build.sh
108115

109116

110117
# NOTE: This would additionally test that the Nix shell customization of the project works.
111-
# By default *this setup provides local hoogle and generates database of project documentation
118+
# By default *this setup provides local hoogle and generates database of the documetation for the project and its dependencies
112119
build40:
113-
name: "Nix-shell & supplied locall Hoogle DB"
120+
name: "Nix-shell & supplied locall project Hoogle DB"
114121
runs-on: ubuntu-latest
115122
steps:
116123
- name: Git checkout
@@ -119,7 +126,7 @@ jobs:
119126
uses: cachix/install-nix-action@v10
120127
- name: Nix-shell
121128
run: nix-shell --command 'echo "Evaluated, loaded and entered $IN_NIX_SHELL Nix shell env."'
122-
- name: Project Hoogle DB by Nix-shell
129+
- name: Local Hoogle DB for the project development and tooling
123130
run: nix-shell --command 'hoogle True'
124131

125132

.github/workflows/Nixpkgs-macOS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
uses: actions/checkout@v2
2424
- name: Install Nix
2525
uses: cachix/install-nix-action@v10
26-
- name: Determined nix-build
26+
- name: Determined Nix-build
2727
run: ./build.sh

0 commit comments

Comments
 (0)