Commit Graph

51 Commits

Author SHA1 Message Date
Javier Neira
ca5544179c
Merge branch 'master' into prepare-0.8.0-2 2021-01-03 23:14:18 +01:00
Pepe Iborra
7fa3ff6a64
Auto cancel redundant workflows (attempt #2) (#1154)
* Auto cancel redundant workflows (attempt #2)

* empty commit to test
2021-01-03 20:12:02 +00:00
jneira
eb48bf971d Fix build for macOS 2021-01-03 15:37:19 +01:00
jneira
da47a3f209 Add ghc-8.10.3 to gihub actions 2021-01-01 21:51:54 +01:00
Pepe Iborra
aa7e9a377a
Ci fixes (#783)
* Drop macOS benchmarks

* Drop macOS tests

* Really exclude Windows 8.6.4

It occasionally becomes much slower than the others and times out after 6h

https://github.com/haskell/haskell-language-server/runs/1626173853?check_suite_focus=true

* switch to haskell/actions/setup

actions/setup-haskell has been archived, haskell/actions/setup is the replacement

* use coarser cache keys

We are getting very few cache hits because we have too many caches and are
running over the 5GB per repository limit.

Each node in the matrix weighs around 350MB, so we can have up to 15 nodes. The
current matrix (after dropping macOS but before adding 8.10.3) has 12 nodes.

The `**/*.cabal` hash is wrong, since it also captures cabal files in tests
The `**/cabal.project` is wrong for the same reason, but it can be easily
fixed.

* Use more precise .cabal paths in test cache

* Reuse build cache in bench workflows and viceversa

* Reduce Nix builds to the bare minimum

We simply need to check that the Nix derivation works

* remove enable-stack

* Auto cancel redundant workflows

* Enable tests fail-fast

* Remove ghc-lib from matrix

Created #784 to restore it
2021-01-01 19:31:31 +00:00
Pepe Iborra
1a34357f08
Invert the dependency between hls-plugin-api and ghcide (#701)
* Invert the dependency between ghcide and hls-plugin-api

This PR includes changes both to ghcide and HLS to implement the reorg described in https://github.com/haskell/ghcide/issues/936#issuecomment-751437853

To summarise:

- `hls-plugin-api` no longer depends on ghcide.
- `ghcide` now depends on `hls-plugin-api` and exposes:
  - The ghcide HLS plugin
  - The `asGhcIdePlugin` adaptor

The goals are:
- to be able to break the `ghcide` HLS plugin down
- to rewrite exe:ghcide on top of the HLS plugin model.

The ghcide side is reviewed in https://github.com/haskell/ghcide/pull/963

If this change is accepted there are two further considerations:
- This would be a good moment to merge the 2 repos, so that there is no history loss.
- `hls-plugin-api` will need to be released to Hackage prior to merging https://github.com/haskell/ghcide/pull/963

* clean up

* Fix the ghcide plugin to include the rules

* clean up PartialHandlers definition

The ghcide partial handlers for completions, code actions and hover are not
really being used, since they get overriden by the `<> ps` append. This is due
to the right-biased semantics of `PartialHandlers`

* Move ghcide LspConfig into Ide.Plugin.Config

* Use HLS plugins in ghcide

For now there is only one, the main ghcide plugin. But this will allow us to
break it down in more fine grained plugins with parallel semantics, both for
execution and error handling

* Fix hlints

* Revert "Temporarily disable the upstream branch for benchmarks"

This reverts commit 7bb3c6efae.

* Disable the Windows 8.6.4 test

* Fix unrelated hlints

Not sure why these are triggering now.

Linting should be restricted to the Diff ...
2020-12-30 23:48:17 +00:00
Pepe Iborra
7e86f1785c Fix paths in bench script 2020-12-29 13:22:04 +00:00
Pepe Iborra
df66518bd1 Run GitHub actions only on PR
With so many github actions (>60) we cannot afford to run on every push
2020-12-29 13:22:04 +00:00
Pepe Iborra
f2ef26ded5 Run the ghcide test suite first 2020-12-29 13:22:04 +00:00
Pepe Iborra
8544fc0bc1 Combine test and nix CI scripts 2020-12-29 13:22:04 +00:00
Pepe Iborra
a48a91074e Add ghcide bench CI action 2020-12-29 13:22:03 +00:00
Pasqualino Titto Assini
887cde9e11 Eval tests as proper subpackage (to add QuickCheck dependency) 2020-12-25 10:12:17 +01:00
jneira
2876c3dd01 Fix ghc version for windows 8.10.2.2 2020-12-18 11:01:45 +01:00
jneira
d447437d60 Fix windows 8.10.2 executable name 2020-12-17 13:21:29 +01:00
Pepe Iborra
46d1c7654c Upgrade to cachix-action@v8
Adds support for auth tokens
2020-12-01 23:11:49 +00:00
Pepe Iborra
b2d144911c Add a Github action to warm up the Cachix haskell-language-server 2020-12-01 23:11:49 +00:00
jneira
eed310c9fe Use inclusion instead exclusions 2020-11-24 09:48:01 +01:00
jneira
a1a02f7807 Use always last setup-haskell@v1 2020-11-24 09:34:49 +01:00
jneira
4f3f4c18f4 Add ghc-8.10.2.2 to windows build 2020-11-24 08:26:19 +01:00
jneira
46fecccf33 Correct formatting 2020-11-24 08:25:44 +01:00
Javier Neira
381b598296
Use correct version of ghc choco package
Excluding the version for the rest of os's
2020-11-23 23:50:52 +01:00
Javier Neira
fb91944a87
Enable ghc-8.10.2 for windows
As chocolatey applies the workaround: https://gitlab.haskell.org/ghc/ghc/-/issues/18550#note_309996
2020-11-23 22:29:56 +01:00
Javier Neira
1ef375f688
Remove workaround not longer needed
As https://github.com/actions/setup-haskell/issues/44 is closed
2020-11-20 07:27:38 +01:00
jneira
03f1e1553a Allow insecure commands temporary 2020-11-17 20:21:13 +01:00
Janek
0955c9ad24
Use comments & simplify issue template 2020-11-11 13:02:41 +01:00
Javier Neira
372a12e797
Merge pull request #584 from bubba/github-actions-tar-preserve-permissions
Preserve file permissions in tar bundles
2020-11-11 07:36:00 +01:00
Luke Lau
9689b83945 Preserve file permissions in tar bundles
Fixes #316
2020-11-11 01:35:37 +00:00
Luke Lau
946f0ac524 Replace deprecated set-env with temporary files 2020-11-11 01:33:20 +00:00
jneira
77b17d2f1a Retry wrapper-test twice 🤦 2020-11-05 11:42:48 +01:00
jneira
d5d3bb093c Retry nix build twice 2020-11-05 10:56:42 +01:00
jneira
ce96b4cb92 Separete test suites to fix --rerun 2020-11-05 08:00:09 +01:00
jneira
d19568f62b Use bash shell to allow its idioms 2020-10-29 20:28:11 +01:00
jneira
94b7a3ea6f Rerun test suite to avoid flaky tests 2020-10-28 22:26:43 +01:00
jneira
0fa74a4023 Comment the intent of retries 2020-10-19 23:29:50 +02:00
jneira
9cb25f13e3 Retry the build three times 2020-10-19 21:57:12 +02:00
Luke Lau
cdf50a6312
Add GitHub Actions CI for testing (#504)
* Add GitHub workflow for testing

* Add HLS_TEST_EXE env var to control which exe to test

* Pass -j1 flag to tasty when running tests on GitHub

* Enable stack in GitHub CI

* Update cabal

* Add HLS_WRAPPER_TEST_EXE

* Fix cache restore keys

* Try force language server to use utf8 locale

* Use patched hie-bios

* Remove debug print

* Lets find out what the windows locale encoding is

* Give up trying to fix the locale

* Add comment for -j1
2020-10-19 14:16:17 +01:00
Luke Lau
c4d16f8981 Fix folder structure of tarballs 2020-10-04 22:17:08 +01:00
Luke Lau
14497f2503 Fix how binaries are tarred together 2020-10-04 17:10:18 +01:00
Luke Lau
3ca2a6cd26 Rename tarfile extensions to .tar.gz 2020-10-03 19:33:03 +01:00
Luke Lau
2d8551db5c Fix tar job in GitHub Actions workflow 2020-10-03 18:10:26 +01:00
Luke Lau
1e4bfc523c Use actions/setup-haskell v1.1.3 2020-10-02 20:43:35 +01:00
Luke Lau
abe59d4c4b Generate .gz tars of all the binaries for macOS and Linux
Used by ghcup
2020-10-02 20:43:32 +01:00
Luke Lau
46502c884d Disable ghc-8.10.2 on windows due to linker path issue 2020-09-02 21:59:22 +01:00
Luke Lau
babe12562a Add 8.10.2 to github actions build 2020-09-02 21:15:50 +01:00
Fendor
96d930c655 Add ISSUE_TEMPLATE for github 2020-08-23 15:28:50 +02:00
jneira
712d5f0346 Add exe extension to win executables 2020-08-04 01:14:49 +02:00
Luke Lau
a308151650 Fix compression extension on GitHub build artifacts 2020-07-31 23:29:45 +01:00
Luke Lau
0ac6c6df66 Disable Windows 8.8.4 build
It's encountered the segfault every single time now. Maybe another
release :(

Also remove the disable-documentation flag since the cabal.project file
has been updated
2020-07-28 15:26:05 +01:00
Luke Lau
5ac8653371 Rename binaries before uploading
Also use zip as compression method for Windows
Fixes #225
2020-07-28 11:34:27 +01:00
Luke Lau
1b2efffd97 Add static binaries for ghc-8.8.4 2020-07-23 13:24:37 +01:00