Skip to content

Commit

Permalink
CI: add s390x and ppc64le jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed May 8, 2024
1 parent 82fb474 commit b47e599
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,32 @@ jobs:
cabal test
cabal bench
# Emulation 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.
emulated:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
arch: ['s390x', 'ppc64le']
steps:
- uses: actions/checkout@v4
- uses: uraimo/[email protected]
timeout-minutes: 60
with:
arch: ${{ matrix.arch }}
distro: ubuntu_rolling
githubToken: ${{ github.token }}
install: |
apt-get update -y
apt-get install -y curl ghc libghc-tasty-quickcheck-dev libghc-syb-dev
run: |
ghc --version
ghc --make -itests:tests/bytestring-tests -o Main tests/bytestring-tests/Main.hs +RTS -s
./Main +RTS -s
ghc --make -itests:tests/encoding -o Main tests/encoding/Main.hs +RTS -s
./Main +RTS -s

0 comments on commit b47e599

Please sign in to comment.