Skip to content

Commit 18a19f9

Browse files
committed
Use msys2 on Windows in github actions
1 parent 1eaf600 commit 18a19f9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/haskell.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,29 @@ jobs:
1212
ghc: ["8.10.7", "9.2.2"]
1313
os: [ubuntu-latest, macos-latest, windows-latest]
1414

15+
defaults:
16+
run:
17+
shell: ${{ matrix.os == 'windows-latest' && 'msys2 {0}' || 'bash' }}
18+
1519
steps:
1620
- name: Set cache versioj
1721
run: echo "CACHE_VERSION=pu4Aevoo" >> $GITHUB_ENV
1822

23+
steps:
24+
- name: "WIN: Setup MSYS2 and libraries"
25+
if: runner.os == 'Windows'
26+
uses: msys2/setup-msys2@v2
27+
with:
28+
update: true
29+
install: >-
30+
base-devel
31+
autoconf-wrapper
32+
autoconf
33+
automake
34+
libtool
35+
make
36+
git
37+
1938
- name: "Setup haskell"
2039
uses: haskell/actions/setup@v1
2140
id: setup-haskell

0 commit comments

Comments
 (0)