From 78adc8be6f27a237d01ef690075b0679b0904726 Mon Sep 17 00:00:00 2001 From: Pablo Lamela Date: Mon, 24 Jun 2024 17:12:22 +0200 Subject: [PATCH] Apply suggestion by @smelc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Hurlin --- .github/workflows/hls.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/hls.yml b/.github/workflows/hls.yml index d603b77ebc..a82ec0e1ff 100644 --- a/.github/workflows/hls.yml +++ b/.github/workflows/hls.yml @@ -13,8 +13,17 @@ jobs: test-hls-works: runs-on: ubuntu-latest steps: - - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c - - uses: cachix/install-nix-action@daddc62a2e67d1decb56e028c9fa68344b9b7c2a - with: - nix_path: nixpkgs=channel:nixos-23.11 - - run: nix develop --accept-flake-config --command bash -c "cabal update; haskell-language-server" + - uses: actions/checkout@v4 + - name: Install Nix with good defaults + uses: input-output-hk/install-nix-action@v20 + with: + extra_nix_config: | + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= + substituters = https://cache.iog.io/ https://cache.nixos.org/ + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/install-nix-action@v18 + with: + nix_path: nixpkgs=channel:nixos-unstable + # Make the Nix environment available to next steps + - uses: rrbutani/use-nix-shell-action@v1 + - run: cabal update; haskell-language-server