Merge pull request #735 from IntersectMBO/plutus-script-cost-calculat… #958
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Haskell Language Server works" | |
on: | |
merge_group: | |
pull_request: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
test-hls-works: | |
env: | |
# Modify this value to "invalidate" the cache. | |
HLS_CACHE_VERSION: "2024-07-24" | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
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/ | |
- uses: rrbutani/use-nix-shell-action@v1 | |
- name: Update dependencies | |
run: cabal update; cabal freeze | |
- name: Obtain GHC version | |
run: | | |
echo "VERSION=$(ghc --numeric-version)" >> "$GITHUB_OUTPUT" | |
id: ghc | |
- name: HLS caching | |
uses: actions/cache@v4 | |
with: | |
path: | | |
/home/runner/.cache/hie-bios | |
/home/runner/.cache/ghcide | |
/home/runner/.local/state/cabal | |
.ghc.environment.x86_64-linux-* | |
dist-newstyle | |
key: hls-cache-${{ env.HLS_CACHE_VERSION }}-${{ runner.os }}-${{ steps.ghc.outputs.VERSION }}-${{ hashFiles('**/cabal.project.freeze') }}-${{ hashFiles('**/*.cabal', '**/cabal.project') }} | |
restore-keys: | | |
hls-cache-${{ env.HLS_CACHE_VERSION }}-${{ runner.os }}-${{ steps.ghc.outputs.VERSION }}-${{ hashFiles('**/cabal.project.freeze') }}- | |
- name: Test HLS works | |
run: haskell-language-server |