Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply workaround for 8.8.4 and windows to enable it in ci #2199

Merged
merged 1 commit into from Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -21,8 +21,6 @@ jobs:
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 :(
- os: windows-latest
ghc: '8.8.3' # fails due to segfault
include:
Expand Down Expand Up @@ -81,6 +79,12 @@ jobs:
echo "# uninstalling CommandLineTools (see https://github.com/haskell/haskell-language-server/issues/1913#issuecomment-861667786)"
sudo rm -rf /Library/Developer/CommandLineTools

- name: Modify cabal.project to workaround segfaults for ghc-8.8.4 and windows
if: matrix.ghc == '8.8.4' && matrix.os == 'windows-latest'
run: |
echo "package floskell" >> cabal.project
echo " ghc-options: -O0" >> cabal.project

- name: Build Server
# Try building it twice in case of flakey builds on Windows
run: |
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -67,10 +67,12 @@ jobs:
ghc: '8.10.4'
- os: windows-latest
ghc: '8.10.3'
- os: windows-latest
ghc: '8.8.4'
# These builds get stuck frequently
# - os: windows-latest
# ghc: '8.10.2.2'

# - os: windows-latest
# ghc: '8.6.4'

Expand Down Expand Up @@ -101,7 +103,7 @@ jobs:
echo "CABAL_STORE_DIR=~/.cabal/store" >> $GITHUB_ENV
echo "CABAL_PKGS_DIR=~/.cabal/packages" >> $GITHUB_ENV

- name: Tentative Workaround for GHC 8.10.5 on macOS
- name: Workaround for GHC 8.10.5 on macOS
if: matrix.os == 'macOS-latest' && matrix.ghc == '8.10.5'
run: |
echo "# uninstalling CommandLineTools (see https://github.com/haskell/haskell-language-server/issues/1913#issuecomment-861667786)"
Expand All @@ -112,6 +114,12 @@ jobs:
name: Use modified cabal.project for ghc9
run: cp cabal-ghc901.project cabal.project

- if: ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.ghc == '8.8.4' && matrix.os == 'windows-latest' }}
name: Modify cabal.project to workaround segfaults for ghc-8.8.4 and windows
run: |
echo "package floskell" >> cabal.project
echo " ghc-options: -O0" >> cabal.project

- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
name: Cache Cabal
uses: actions/cache@v2
Expand Down