|
11 | 11 | strategy:
|
12 | 12 | fail-fast: false
|
13 | 13 | matrix:
|
14 |
| - os: [macos-latest, ubuntu-latest, windows-latest] |
15 |
| - ghc: [8.10.7, 9.0.2, 9.2.8, 9.4.7, 9.6.2] |
| 14 | + os: [macos-12, ubuntu-latest, windows-latest] |
| 15 | + ghc: [8.10.7, 9.4.8, 9.6.4, 9.8.2] |
16 | 16 | runs-on: ${{ matrix.os }}
|
17 | 17 | steps:
|
18 | 18 | - name: Checkout
|
|
28 | 28 | - run: yarn install --immutable --immutable-cache --check-cache
|
29 | 29 | - run: yarn run webpack
|
30 | 30 |
|
| 31 | + # Setup toolchains, install ghcup, install ghc, etc... |
| 32 | + - name: Setup Haskell |
| 33 | + uses: haskell-actions/setup@v2 |
| 34 | + with: |
| 35 | + ghc-version: ${{ matrix.ghc }} |
31 | 36 | - name: Toolchain settings
|
32 | 37 | run: |
|
33 | 38 | ghcup upgrade -i -f
|
|
37 | 42 | ghcup install stack latest
|
38 | 43 | ghcup install cabal latest
|
39 | 44 |
|
40 |
| - ghcup install ghc ${{matrix.ghc}} |
41 |
| - ghcup set ghc ${{matrix.ghc}} |
| 45 | + ghcup install ghc ${{ matrix.ghc }} |
| 46 | + ghcup set ghc ${{ matrix.ghc }} |
42 | 47 |
|
| 48 | + # This is a prefetched, fallback HLS version. |
| 49 | + # We want to make sure, we still support old GHC versions |
| 50 | + # and graciously fallback to an HLS version that supports the old GHC version, such as 8.10.7 |
43 | 51 | ghcup install hls 2.2.0.0
|
44 | 52 | ghcup install hls latest
|
45 | 53 | shell: bash
|
|
76 | 84 | rm -rf test-workspace
|
77 | 85 | rm -rf out
|
78 | 86 | shell: bash
|
79 |
| - |
80 |
| - - name: Package tested extension |
81 |
| - if: runner.os == 'Linux' |
82 |
| - run: npx vsce package |
83 |
| - - name: Upload extension vsix to workflow artifacts |
84 |
| - if: runner.os == 'Linux' |
85 |
| - uses: actions/upload-artifact@v3 |
86 |
| - with: |
87 |
| - name: haskell-${{ github.sha }}.vsix |
88 |
| - path: haskell-*.vsix |
0 commit comments