mirror of
https://github.com/haskell/ghcide.git
synced 2024-11-22 19:14:09 +03:00
Extend CI with all GHC minor versions supported by hls and fix ghc-8.8.3 and ghc-8.8.2 builds (#947)
* Extend CI matrix with all the GHC minor versions supported by HLS * Adding a new job for windows: ghc-8.10.2.2 * Use GADTs for all ghc versions in Development.IDE.Plugin.Completions.Logic * Fix ghc-8.8.2 and ghc-8.8.3 builds Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
This commit is contained in:
parent
baafe2cb82
commit
27b4250bb2
2
.github/workflows/bench.yml
vendored
2
.github/workflows/bench.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Benchmark
|
name: Benchmark
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
bench:
|
bench:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
2
.github/workflows/nix.yml
vendored
2
.github/workflows/nix.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Nix
|
name: Nix
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
nix:
|
nix:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
49
.github/workflows/test.yml
vendored
49
.github/workflows/test.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Testing
|
name: Testing
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
timeout-minutes: 360
|
timeout-minutes: 360
|
||||||
@ -8,20 +8,47 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macOS-latest, ubuntu-latest, windows-latest]
|
# all versions to only build or test for non windows os's
|
||||||
ghc: ['8.10.2', '8.8.4', '8.6.5']
|
# inclusions will modify the major ones to mark them as testables
|
||||||
|
os: [macOS-latest, ubuntu-latest]
|
||||||
|
ghc: ['8.10.2', '8.10.1', '8.8.4', '8.8.3', '8.8.2', '8.6.5', '8.6.4']
|
||||||
ghc-lib: [false]
|
ghc-lib: [false]
|
||||||
exclude:
|
|
||||||
- os: windows-latest
|
|
||||||
ghc: '8.10.2' # broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/18550
|
|
||||||
- os: windows-latest
|
|
||||||
ghc: '8.8.4' # also fails due to segfault :(
|
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
# one ghc-lib build
|
||||||
ghc: '8.10.1'
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
ghc: '8.10.1'
|
ghc: '8.10.1'
|
||||||
ghc-lib: true
|
ghc-lib: true
|
||||||
|
# only test supported ghc major versions
|
||||||
|
- os: macOS-latest
|
||||||
|
ghc: '8.10.2'
|
||||||
|
test: true
|
||||||
|
- os: ubuntu-latest
|
||||||
|
ghc: '8.10.2'
|
||||||
|
test: true
|
||||||
|
# specific 8.10.2 version for windows and chocolatey
|
||||||
|
- os: windows-latest
|
||||||
|
ghc: '8.10.2.2'
|
||||||
|
test: true
|
||||||
|
- os: macOS-latest
|
||||||
|
ghc: '8.8.4'
|
||||||
|
test: true
|
||||||
|
- os: ubuntu-latest
|
||||||
|
ghc: '8.8.4'
|
||||||
|
test: true
|
||||||
|
- os: macOS-latest
|
||||||
|
ghc: '8.6.5'
|
||||||
|
test: true
|
||||||
|
- os: ubuntu-latest
|
||||||
|
ghc: '8.6.5'
|
||||||
|
test: true
|
||||||
|
- os: windows-latest
|
||||||
|
ghc: '8.6.5'
|
||||||
|
test: true
|
||||||
|
# only build rest of supported ghc versions for windows
|
||||||
|
- os: windows-latest
|
||||||
|
ghc: '8.10.1'
|
||||||
|
- os: windows-latest
|
||||||
|
ghc: '8.6.4'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -62,7 +89,7 @@ jobs:
|
|||||||
run: cabal build || cabal build || cabal build
|
run: cabal build || cabal build || cabal build
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
|
if: ${{ !matrix.ghc-lib && matrix.test }}
|
||||||
shell: bash
|
shell: bash
|
||||||
# run the tests without parallelism to avoid running out of memory
|
# run the tests without parallelism to avoid running out of memory
|
||||||
run: cabal test --test-options="-j1 --rerun-update" || cabal test --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test --test-options="-j1 --rerun"
|
run: cabal test --test-options="-j1 --rerun-update" || cabal test --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test --test-options="-j1 --rerun"
|
||||||
if: ${{ !matrix.ghc-lib}}
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{-# LANGUAGE CPP #-}
|
{-# LANGUAGE CPP #-}
|
||||||
|
{-# LANGUAGE GADTs#-}
|
||||||
|
|
||||||
#include "ghc-api-version.h"
|
#include "ghc-api-version.h"
|
||||||
#if MIN_GHC_API_VERSION (8,8,4)
|
|
||||||
{-# LANGUAGE GADTs#-}
|
|
||||||
#endif
|
|
||||||
-- Mostly taken from "haskell-ide-engine"
|
-- Mostly taken from "haskell-ide-engine"
|
||||||
module Development.IDE.Plugin.Completions.Logic (
|
module Development.IDE.Plugin.Completions.Logic (
|
||||||
CachedCompletions
|
CachedCompletions
|
||||||
|
Loading…
Reference in New Issue
Block a user