Skip to content

Commit

Permalink
Merge #4848
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
3 people authored Jan 26, 2023
2 parents da5ff4e + 5e22b78 commit 9675f4b
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/check-hlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check HLint

on:
push:

jobs:
build:
runs-on: ubuntu-latest

defaults:
run:
shell: bash

steps:

- name: Install Nix
uses: cachix/install-nix-action@v18
with:
# Use last stable nixos channel and the same nix as in channel:
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
nix_path: nixpkgs=channel:nixos-22.11
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
allow-import-from-derivation = true
substituters = https://cache.nixos.org https://cache.iog.io
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: actions/checkout@v2

- name: Run hlint
run: |
nix build -L '.#checks/hlint'
7 changes: 5 additions & 2 deletions .github/workflows/check-mainnet-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ jobs:
steps:

- name: Install Nix
uses: cachix/install-nix-action@v16
uses: cachix/install-nix-action@v18
with:
# Use last stable nixos channel and the same nix as in channel:
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
nix_path: nixpkgs=channel:nixos-22.11
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
allow-import-from-derivation = true
substituters = https://cache.nixos.org https://cache.iog.io
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=
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: actions/checkout@v2

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/check-nix-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ jobs:
- name: Install Nix
uses: cachix/install-nix-action@v18
with:
# Use last stable nixos channel and the same nix as in channel:
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
nix_path: nixpkgs=channel:nixos-22.11
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
allow-import-from-derivation = true
substituters = https://cache.nixos.org https://hydra.iohk.io
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=
substituters = https://cache.nixos.org https://cache.iog.io
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: actions/checkout@v2

Expand Down
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,11 @@
};
};
};
defaultNonRequiredPaths = [ "windows.checks.cardano-tracer.cardano-tracer-test"
defaultNonRequiredPaths = [
# hlint required status is controled via the github action:
"native.checks/hlint"
#FIXME: cardano-tracer-test for windows should probably be disabled in haskell.nix config:
"windows.checks.cardano-tracer.cardano-tracer-test"
#FIXME: plutus-scripts-bench (dep of tx-generator) does not compile for windows:
"windows.tx-generator"
"windows.benchmarks.tx-generator"
Expand Down

0 comments on commit 9675f4b

Please sign in to comment.