forked from jodonoghue/wxHaskell
-
Notifications
You must be signed in to change notification settings - Fork 42
90 lines (75 loc) · 2.13 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: build-wxHaskell
on:
push:
pull_request:
branches: [master]
jobs:
build:
strategy:
fail-fast: false
matrix:
ghc: ["9.4.8"]
os: [ ubuntu-latest, macOS-latest ]
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- name: Install wxWidgets on Ubuntu / macOS
run: |
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
sudo apt-get install -y libwxgtk3.0-gtk3-dev libwxgtk-media3.0-gtk3-dev
elif [[ "${{ matrix.os }}" == "macOS-latest" ]]; then
brew install wxwidgets
fi
- name: Configure project
run: |
echo "$SHELL"
echo "$PATH"
cabal configure
cabal build all --dry-run
- name: Build
run: |
echo "$SHELL"
echo "$PATH"
cabal build all
build-on-windows:
strategy:
fail-fast: false
matrix:
ghc: ["9.4.8"]
os: [ windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- name: Install wxWidgets on Windows
uses: msys2/setup-msys2@v2
with:
msystem: CLANG64
install: >-
mingw-w64-clang-x86_64-clang
mingw-w64-clang-x86_64-wxwidgets3.2-msw
- shell: msys2 {0}
name: Configure project
run: |
export PATH=$PATH:"/c/ghcup/msys64/bin":"/c/ghcup/usr/bin"
echo "$SHELL"
echo "$PATH"
cabal configure
cabal build all --dry-run
cabal build all
- shell: msys2 {0}
name: Build
run: |
export PATH=$PATH:"/c/ghcup/msys64/bin":"/c/ghcup/usr/bin"
echo "$SHELL"
echo "$PATH"
cabal build all