Skip to content

Commit 9675f4b

Browse files
iohk-bors[bot]newhoggyjbgi
authored
Merge #4848
4848: Remove hlint from nix required CI r=jbgi a=newhoggy Co-authored-by: John Ky <[email protected]> Co-authored-by: Jean-Baptiste Giraudeau <[email protected]>
2 parents da5ff4e + 5e22b78 commit 9675f4b

File tree

4 files changed

+49
-5
lines changed

4 files changed

+49
-5
lines changed

Diff for: .github/workflows/check-hlint.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check HLint
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
steps:
15+
16+
- name: Install Nix
17+
uses: cachix/install-nix-action@v18
18+
with:
19+
# Use last stable nixos channel and the same nix as in channel:
20+
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
21+
nix_path: nixpkgs=channel:nixos-22.11
22+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
23+
extra_nix_config: |
24+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
25+
experimental-features = nix-command flakes
26+
allow-import-from-derivation = true
27+
substituters = https://cache.nixos.org https://cache.iog.io
28+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
29+
30+
- uses: actions/checkout@v2
31+
32+
- name: Run hlint
33+
run: |
34+
nix build -L '.#checks/hlint'

Diff for: .github/workflows/check-mainnet-config.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ jobs:
1414
steps:
1515

1616
- name: Install Nix
17-
uses: cachix/install-nix-action@v16
17+
uses: cachix/install-nix-action@v18
1818
with:
19+
# Use last stable nixos channel and the same nix as in channel:
20+
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
21+
nix_path: nixpkgs=channel:nixos-22.11
1922
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2023
extra_nix_config: |
2124
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2225
experimental-features = nix-command flakes
2326
allow-import-from-derivation = true
2427
substituters = https://cache.nixos.org https://cache.iog.io
25-
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
28+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
2629
2730
- uses: actions/checkout@v2
2831

Diff for: .github/workflows/check-nix-config.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ jobs:
1616
- name: Install Nix
1717
uses: cachix/install-nix-action@v18
1818
with:
19+
# Use last stable nixos channel and the same nix as in channel:
20+
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
21+
nix_path: nixpkgs=channel:nixos-22.11
1922
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2023
extra_nix_config: |
2124
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2225
experimental-features = nix-command flakes
2326
allow-import-from-derivation = true
24-
substituters = https://cache.nixos.org https://hydra.iohk.io
25-
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
27+
substituters = https://cache.nixos.org https://cache.iog.io
28+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
2629
2730
- uses: actions/checkout@v2
2831

Diff for: flake.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,11 @@
317317
};
318318
};
319319
};
320-
defaultNonRequiredPaths = [ "windows.checks.cardano-tracer.cardano-tracer-test"
320+
defaultNonRequiredPaths = [
321+
# hlint required status is controled via the github action:
322+
"native.checks/hlint"
323+
#FIXME: cardano-tracer-test for windows should probably be disabled in haskell.nix config:
324+
"windows.checks.cardano-tracer.cardano-tracer-test"
321325
#FIXME: plutus-scripts-bench (dep of tx-generator) does not compile for windows:
322326
"windows.tx-generator"
323327
"windows.benchmarks.tx-generator"

0 commit comments

Comments
 (0)