Better Tests and Benchmarks for Float and Double Builders #1193
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- bytestring-0.11 | ||
- bytestring-0.12 | ||
pull_request: {} # Validate all PRs | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
# 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-tasty-hunit-dev libghc-tasty-expected-failure-dev libghc-syb-dev | ||
run: | | ||
curl -s https://hackage.haskell.org/package/data-array-byte-0.1/data-array-byte-0.1.tar.gz | tar xz | ||
ghc --version | ||
ghc --make -XHaskell2010 -XBangPatterns -XDeriveDataTypeable -XDeriveGeneric -XDeriveLift -XFlexibleContexts -XFlexibleInstances -XLambdaCase -XMagicHash -XMultiWayIf -XNamedFieldPuns -XPatternSynonyms -XRankNTypes -XScopedTypeVariables -XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeOperators -XUnboxedTuples -optP-Wall -optP-Werror=undef -DPURE_HASKELL=0 -Iinclude -itests:tests/builder:data-array-byte-0.1 -o Main cbits/*.c tests/Main.hs +RTS -s | ||
./Main +RTS -s | ||