5
5
branches : [ master ]
6
6
pull_request :
7
7
branches : [ master ]
8
- schedule :
9
- - cron : ' 0 2 * * *'
10
8
11
9
jobs :
12
10
build :
@@ -37,13 +35,16 @@ jobs:
37
35
if : runner.os == 'Linux'
38
36
run : |
39
37
sudo apt-get -y update
40
- sudo apt-get -y install libtinfo5 libtinfo6 libncurses5 libncurses6
38
+ sudo apt-get -y install libtinfo6 libncurses6
39
+
40
+ - name : Install GHCup
41
+ uses : haskell/ghcup-setup@v1
41
42
42
43
- name : Install ghc/cabal
43
44
run : |
44
45
set -eux
45
46
ghcup install ghc --set ${{ matrix.ghc }}
46
- ghcup install cabal ${{ matrix.cabal }}
47
+ ghcup install cabal --set latest
47
48
shell : bash
48
49
49
50
- name : Build
@@ -59,20 +60,14 @@ jobs:
59
60
60
61
i386 :
61
62
runs-on : ubuntu-latest
62
- container :
63
- image : i386/ubuntu:bionic
64
63
steps :
65
- - name : Install
66
- run : |
67
- apt-get update -y
68
- apt-get install -y autoconf build-essential zlib1g-dev libgmp-dev curl libncurses5 libtinfo5 libncurses5-dev libtinfo-dev
69
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 sh
70
- - uses : actions/checkout@v1
71
- - name : Test
72
- run : |
73
- . ~/.ghcup/env
74
- cabal update
75
- cabal test
64
+ - name : Checkout code
65
+ uses : actions/checkout@v4
66
+
67
+ - name : Run build (32 bit linux)
68
+ uses : docker://hasufell/i386-alpine-haskell:3.12
69
+ with :
70
+ args : sh -c "cabal update && cabal test"
76
71
77
72
# We use github.com/haskell self-hosted runners for ARM testing.
78
73
# If they become unavailable in future, put ['armv7', 'aarch64']
@@ -122,6 +117,9 @@ jobs:
122
117
- name : Checkout code
123
118
uses : actions/checkout@v4
124
119
120
+ - name : Install GHCup
121
+ uses : haskell/ghcup-setup@v1
122
+
125
123
- name : Run build
126
124
run : |
127
125
bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
@@ -131,8 +129,7 @@ jobs:
131
129
export LD=ld
132
130
export AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar"
133
131
export RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib"
134
- . .github/scripts/env.sh
135
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }} BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes sh
132
+ cabal update
136
133
cabal test
137
134
env :
138
135
HOMEBREW_CHANGE_ARCH_TO_ARM : 1
@@ -151,10 +148,14 @@ jobs:
151
148
- name : Checkout code
152
149
uses : actions/checkout@v4
153
150
151
+ - name : Install prerequisites
152
+ run : |
153
+ sudo pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake autoconf
154
+
155
+ - name : Install GHCup
156
+ uses : haskell/ghcup-setup@v1
157
+
154
158
- name : Run build
155
159
run : |
156
- pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14
157
- . .github/scripts/env.sh
158
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }} BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes sh
160
+ cabal update
159
161
cabal test
160
-
0 commit comments