-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (37 loc) · 1.47 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
name: s390x
on:
push:
branches:
- master
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: ubuntu20.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
curl -s -L https://hackage.haskell.org/package/unicode-data-0.3.0.tar.gz | tar xz
ghc --make -XMagicHash -XBangPatterns -XUnboxedTuples -itest:unicode-data-0.3.0/lib -o extras test/Extra.hs
./extras
ghc --make -XMagicHash -XBangPatterns -XUnboxedTuples -itest:unicode-data-0.3.0/lib -o quickcheck test/Properties.hs
./quickcheck
ghc --make -XMagicHash -XBangPatterns -XUnboxedTuples -itest:unicode-data-0.3.0/lib -o ucd test/NormalizationTest.hs
./ucd