-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (58 loc) · 2.36 KB
/
s390x.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
name: s390x
on:
push:
branches:
- master
# [TODO] maybe limit it to those files which include "MachDeps.h" to spare resources
pull_request: {} # Validate all PRs
defaults:
run:
shell: bash
jobs:
# Emulation on s390x platform is incredibly slow and memory demanding.
# It seems that any executable with GHC RTS takes at least 7-8 Gb of RAM, so we can
# run `cabal` or `ghc` on their own, but cannot run them both at the same time, striking
# out `cabal test`. Instead we rely on system packages and invoke `ghc --make` manually,
# and even so `ghc -O` is prohibitively expensive.
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: uraimo/[email protected]
timeout-minutes: 60
with:
arch: s390x
distro: ubuntu22.04
githubToken: ${{ github.token }}
install: |
apt-get update -y
apt-get install -y \
ghc libghc-quickcheck2-dev libghc-hspec-dev \
libghc-getopt-generics-dev libghc-split-dev curl
run: |
ghc --version
export LC_ALL=C.UTF-8
ghc --make \
-XMagicHash -XBangPatterns -XUnboxedTuples -XScopedTypeVariables \
-XLambdaCase -XBlockArguments -XTupleSections \
-iunicode-data/test:unicode-data/lib \
-o core-test unicode-data/test/Main.hs
./core-test
ghc --make \
-XMagicHash -XBangPatterns -XUnboxedTuples -XScopedTypeVariables \
-XLambdaCase -XBlockArguments -XTupleSections \
-iunicode-data-names/test:unicode-data-names/lib:unicode-data/lib \
-o names-test unicode-data-names/test/Main.hs
./names-test
ghc --make \
-XMagicHash -XBangPatterns -XUnboxedTuples -XScopedTypeVariables \
-XLambdaCase -XBlockArguments -XTupleSections \
-iunicode-data-scripts/test:unicode-data-scripts/lib:unicode-data/lib \
-o scripts-test unicode-data-scripts/test/Main.hs
./scripts-test
ghc --make \
-XMagicHash -XBangPatterns -XUnboxedTuples -XScopedTypeVariables \
-XLambdaCase -XBlockArguments -XTupleSections \
-iunicode-data-security/test:unicode-data-security/lib:unicode-data/lib \
-o security-test unicode-data-security/test/Main.hs
./security-test