Skip to content

Commit

Permalink
Manually install ghcup into image (#1119)
Browse files Browse the repository at this point in the history
* Manually install ghcup into image

* WIP
  • Loading branch information
fendor committed Aug 7, 2024
1 parent 1b588a5 commit e0ae803
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-12, ubuntu-latest, windows-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
ghc: [8.10.7, 9.4.8, 9.6.4, 9.8.2]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -29,10 +29,26 @@ jobs:
- run: yarn run webpack

# Setup toolchains, install ghcup, install ghc, etc...
- name: Setup Haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
- name: Install GHCup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
shell: bash
env:
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
BOOTSTRAP_HASKELL_MINIMAL: 1

- name: Check GHCup (Windows)
run: |
echo "c:/ghcup/bin" >> $GITHUB_PATH
shell: bash
if: runner.os == 'Windows'

- name: Check GHCup (Unix)
run: |
echo "${HOME}/.ghcup/bin" >> $GITHUB_PATH
shell: bash
if: runner.os != 'Windows'

- name: Toolchain settings
run: |
ghcup upgrade -i -f
Expand Down

0 comments on commit e0ae803

Please sign in to comment.