Skip to content

Commit e0ae803

Browse files
authored
Manually install ghcup into image (#1119)
* Manually install ghcup into image * WIP
1 parent 1b588a5 commit e0ae803

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [macos-12, ubuntu-latest, windows-latest]
14+
os: [macos-latest, ubuntu-latest, windows-latest]
1515
ghc: [8.10.7, 9.4.8, 9.6.4, 9.8.2]
1616
runs-on: ${{ matrix.os }}
1717
steps:
@@ -29,10 +29,26 @@ jobs:
2929
- run: yarn run webpack
3030

3131
# Setup toolchains, install ghcup, install ghc, etc...
32-
- name: Setup Haskell
33-
uses: haskell-actions/setup@v2
34-
with:
35-
ghc-version: ${{ matrix.ghc }}
32+
- name: Install GHCup
33+
run: |
34+
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
35+
shell: bash
36+
env:
37+
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
38+
BOOTSTRAP_HASKELL_MINIMAL: 1
39+
40+
- name: Check GHCup (Windows)
41+
run: |
42+
echo "c:/ghcup/bin" >> $GITHUB_PATH
43+
shell: bash
44+
if: runner.os == 'Windows'
45+
46+
- name: Check GHCup (Unix)
47+
run: |
48+
echo "${HOME}/.ghcup/bin" >> $GITHUB_PATH
49+
shell: bash
50+
if: runner.os != 'Windows'
51+
3652
- name: Toolchain settings
3753
run: |
3854
ghcup upgrade -i -f

0 commit comments

Comments
 (0)