Skip to content

Commit a78548a

Browse files
committed
CI: add s390x and ppc64le jobs
1 parent 82fb474 commit a78548a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,31 @@ jobs:
161161
cabal test
162162
cabal bench
163163
164+
# Emulation is incredibly slow and memory demanding. It seems that any
165+
# executable with GHC RTS takes at least 7-8 Gb of RAM, so we can run
166+
# `cabal` or `ghc` on their own, but cannot run them both at the same time,
167+
# striking out `cabal test`. Instead we rely on system packages and invoke
168+
# `ghc --make` manually, and even so `ghc -O` is prohibitively expensive.
169+
emulated:
170+
runs-on: ubuntu-latest
171+
strategy:
172+
fail-fast: true
173+
matrix:
174+
arch: ['s390x', 'ppc64le']
175+
steps:
176+
- uses: actions/checkout@v4
177+
- uses: uraimo/[email protected]
178+
timeout-minutes: 60
179+
with:
180+
arch: ${{ matrix.arch }}
181+
distro: ubuntu_rolling
182+
githubToken: ${{ github.token }}
183+
install: |
184+
apt-get update -y
185+
apt-get install -y curl ghc libghc-tasty-quickcheck-dev libghc-syb-dev
186+
run: |
187+
ghc --version
188+
ghc --make -itests:tests/bytestring-tests -o Main tests/bytestring-tests/Main.hs +RTS -s
189+
./Main +RTS -s
190+
ghc --make -itests:tests/encoding -o Main tests/encoding/Main.hs +RTS -s
191+
./Main +RTS -s

0 commit comments

Comments
 (0)