Skip to content

Commit 0ec34f0

Browse files
authored
Merge branch 'master' into re-add-stan
2 parents 2bcdb04 + 20a37ec commit 0ec34f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1024
-1417
lines changed

.github/actions/setup-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
cabal:
88
description: "Cabal version"
99
required: false
10-
default: "3.8.1.0"
10+
default: "3.10.2.0"
1111
os:
1212
description: "Operating system: Linux, Windows or macOS"
1313
required: true

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
should_skip: ${{ steps.skip_check.outputs.should_skip }}
2222
steps:
2323
- id: skip_check
24-
uses: fkirc/[email protected].0
24+
uses: fkirc/[email protected].1
2525
with:
2626
cancel_others: false
2727
paths_ignore: '[ "**/docs/**"

.github/workflows/caching.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- id: ghcs
6363
run: echo "ghcs=$(cat ./.github/workflows/supported-ghc-versions.json)" >> $GITHUB_OUTPUT
6464
- id: skip_check
65-
uses: fkirc/[email protected].0
65+
uses: fkirc/[email protected].1
6666
with:
6767
cancel_others: false
6868
paths_ignore: '["**/docs/**"

.github/workflows/flags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- id: ghcs
2727
run: echo "ghcs=$(cat ./.github/workflows/supported-ghc-versions.json)" >> $GITHUB_OUTPUT
2828
- id: skip_check
29-
uses: fkirc/[email protected].0
29+
uses: fkirc/[email protected].1
3030
with:
3131
cancel_others: false
3232
paths_ignore: '[ "**/docs/**"

.github/workflows/nix.yml

Lines changed: 3 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
outputs:
2020
should_skip_develop: ${{ steps.skip_check.outputs.should_skip }}
21-
should_skip_build: ${{ steps.skip_check_no_nix.outputs.should_skip }}
2221
steps:
2322
- id: skip_check
24-
uses: fkirc/[email protected].0
23+
uses: fkirc/[email protected].1
2524
with:
2625
cancel_others: false
2726
paths_ignore: '[ "**/docs/**"
@@ -35,11 +34,6 @@ jobs:
3534
, ".gitlab-ci.yaml"
3635
, ".gitlab/**"
3736
]'
38-
- id: skip_check_no_nix
39-
uses: fkirc/[email protected]
40-
with:
41-
cancel_others: false
42-
paths: '[ "**.nix" ]'
4337

4438
# Enter the development shell and run `cabal build`
4539
develop:
@@ -63,66 +57,15 @@ jobs:
6357
- uses: cachix/cachix-action@v12
6458
with:
6559
name: haskell-language-server
66-
# Disable pushing, we will do that in job `build`
67-
skipPush: true
60+
authToken: ${{ secrets.HLS_CACHIX_AUTH_TOKEN }}
6861
- run: |
6962
nix develop --print-build-logs --command cabal update
7063
nix develop --print-build-logs --command cabal build
7164
72-
# Build and then push HLS binaries with developmet shell to cachix
73-
# This job runs when
74-
# 1. PRs are merged to master (runs on master)
75-
# 2. Nix files are changed (runs on PR)
76-
build:
77-
needs: pre_job
78-
runs-on: ${{ matrix.os }}
79-
env:
80-
HAS_TOKEN: ${{ secrets.HLS_CACHIX_AUTH_TOKEN != '' }}
81-
if: (needs.pre_job.outputs.should_skip_build != 'true' && needs.pre_job.outputs.should_skip_pr != 'true') || (github.repository_owner == 'haskell' && github.ref == 'refs/heads/master')
82-
strategy:
83-
fail-fast: false
84-
matrix:
85-
os: [ubuntu-latest, macOS-latest]
86-
87-
steps:
88-
- uses: actions/checkout@v3
89-
90-
- uses: cachix/install-nix-action@v23
91-
with:
92-
extra_nix_config: |
93-
experimental-features = nix-command flakes
94-
nix_path: nixpkgs=channel:nixos-unstable
95-
- uses: cachix/cachix-action@v12
96-
with:
97-
name: haskell-language-server
98-
authToken: ${{ secrets.HLS_CACHIX_AUTH_TOKEN }}
99-
- name: Build development shell
100-
run: nix develop --print-build-logs --profile dev
101-
- name: Build all development shell (without nix dependencies)
102-
run: nix develop --print-build-logs .#all-simple-dev-shells --profile dev
103-
# We only build nix dev shell for current GHC version because some are
104-
# failing with different GHC version on darwin.
105-
- name: Build development shell with nix dependencies for current GHC version
106-
if: matrix.os == 'macOS-latest'
107-
run: nix develop --print-build-logs .#haskell-language-server-dev-nix --profile dev
108-
- name: Build development shells with nix dependencies
109-
if: matrix.os == 'ubuntu-latest'
110-
run: nix develop --print-build-logs .#all-nix-dev-shells --profile dev
111-
- name: Push development shell
112-
if: ${{ env.HAS_TOKEN == 'true' }}
113-
run: cachix push haskell-language-server dev
114-
- name: Build binaries
115-
run: nix build --print-build-logs
116-
- name: Build all binaries
117-
run: nix build --print-build-logs .#all-haskell-language-server
118-
- name: Push binaries
119-
if: ${{ env.HAS_TOKEN == 'true' }}
120-
run: nix path-info --json | jq -r '.[].path' | cachix push haskell-language-server
121-
12265
nix_post_job:
12366
if: always()
12467
runs-on: ubuntu-latest
125-
needs: [pre_job, develop, build]
68+
needs: [pre_job, develop]
12669
steps:
12770
- run: |
12871
echo "jobs info: ${{ toJSON(needs) }}"

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- id: ghcs
2828
run: echo "ghcs=$(cat ./.github/workflows/supported-ghc-versions.json)" >> $GITHUB_OUTPUT
2929
- id: skip_check
30-
uses: fkirc/[email protected].0
30+
uses: fkirc/[email protected].1
3131
with:
3232
cancel_others: false
3333
paths_ignore: '[ "**/docs/**"
@@ -45,7 +45,7 @@ jobs:
4545
]'
4646
# If we only change ghcide downstream packages we have not test ghcide itself
4747
- id: skip_ghcide_check
48-
uses: fkirc/[email protected].0
48+
uses: fkirc/[email protected].1
4949
with:
5050
cancel_others: false
5151
paths_ignore: '[ "hls-test-utils/**"

cabal.project

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ packages:
3535
./plugins/hls-refactor-plugin
3636
./plugins/hls-overloaded-record-dot-plugin
3737

38-
index-state: 2023-10-30T20:39:48Z
38+
index-state: 2023-11-13T12:07:58Z
3939

4040
tests: True
4141
test-show-details: direct
@@ -55,6 +55,10 @@ constraints:
5555
text -simdutf,
5656
ghc-check -ghc-check-use-package-abis,
5757
ghc-lib-parser-ex -auto,
58+
-- This is only present in some versions, and it's on by default since
59+
-- 0.14.5.0, but there are some versions we allow that need this
60+
-- setting
61+
stylish-haskell +ghc-lib,
5862
-- Centos 7 comes with an old gcc version that doesn't know about
5963
-- the flag '-fopen-simd', which blocked the release 2.2.0.0.
6064
-- We want to be able to benefit from the performance optimisations
@@ -85,27 +89,19 @@ if impl(ghc >= 9.1)
8589

8690
if impl(ghc >= 9.7)
8791
allow-newer:
88-
base,
89-
template-haskell,
90-
ghc,
91-
ghc-prim,
92-
integer-gmp,
93-
ghc-bignum,
94-
template-haskell,
95-
text,
96-
binary,
97-
bytestring,
98-
Cabal,
99-
unix,
100-
deepseq,
101-
102-
repository head.hackage.ghc.haskell.org
103-
url: https://ghc.gitlab.haskell.org/head.hackage/
104-
secure: True
105-
key-threshold: 3
106-
root-keys:
107-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
108-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
109-
7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
110-
111-
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org
92+
ekg-core:text,
93+
-- https://github.com/maoe/ghc-trace-events/issues/12
94+
ghc-trace-events:base,
95+
ghc-trace-events:bytestring,
96+
ghc-trace-events:text,
97+
-- https://github.com/haskell-primitive/primitive-unlifted/issues/39
98+
primitive-unlifted:bytestring,
99+
-- https://github.com/obsidiansystems/constraints-extras/issues/54
100+
constraints-extras:base,
101+
constraints-extras:template-haskell,
102+
-- https://github.com/obsidiansystems/commutative-semigroups/issues/13
103+
commutative-semigroups:base,
104+
commutative-semigroups:template-haskell,
105+
-- https://github.com/kcsongor/generic-lens/issues/158
106+
generic-lens:text,
107+
generic-lens-core:text,

configuration-ghc-90.nix

Lines changed: 0 additions & 53 deletions
This file was deleted.

configuration-ghc-92.nix

Lines changed: 0 additions & 53 deletions
This file was deleted.

configuration-ghc-94.nix

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)