From 1209e6cf0a7a83141c171818f06a7afdfa4d7b8c Mon Sep 17 00:00:00 2001 From: Bodigrim Date: Mon, 24 Apr 2023 21:10:32 +0100 Subject: [PATCH] Add big-endian CI job --- .github/workflows/ci.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9d6312a9..a5359673 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -244,3 +244,28 @@ jobs: name: Run build (arm64v8 linux) with: args: sh -c "cabal update && cabal test" + + # 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. + s390x: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: uraimo/run-on-arch-action@v2.5.0 + timeout-minutes: 60 + with: + arch: s390x + distro: ubuntu_rolling + githubToken: ${{ github.token }} + install: | + apt-get update -y + apt-get install -y ghc libghc-tasty-smallcheck-dev libghc-tasty-hunit-dev libghc-splitmix-dev curl + run: | + ghc --version + ghc --make -isrc:test-legacy -o legacy test-legacy/Legacy.hs + ./legacy + ghc --make -isrc:test -o spec test/Spec.hs + ./spec