Skip to content

Commit

Permalink
[test-windows] Install GMP in Stack's MSYS2 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Oct 19, 2023
1 parent 16d2b1e commit 06b1fe9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- test-windows
pull_request:
branches:
- master
Expand All @@ -20,11 +21,6 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-20.04
shell: bash
container: "{\"image\": \"elopeztob/alpine-haskell-stack-echidna:9.4.5\", \"options\": \"--user 1001\"}"
- os: macos-latest
shell: bash
- os: windows-latest
shell: msys2 {0}

Expand Down Expand Up @@ -96,6 +92,11 @@ jobs:
env:
HOST_OS: ${{ runner.os }}

- name: Install GMP in Stack MSYS2 (Windows)
if: runner.os == 'Windows'
run: |
stack exec -- pacman --noconfirm -S mingw-w64-x86_64-gmp
- name: Build Dependencies
run: |
stack build --ghc-options="-Werror" --extra-include-dirs=$HOME/.local/include --extra-lib-dirs=$HOME/.local/lib --only-dependencies
Expand Down

0 comments on commit 06b1fe9

Please sign in to comment.