-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run less UTF-8 tests so that tests in emulated environment take reasonable time * Wrap certain tests into Sqrt to reduce memory pressure * CI: add s390x and ppc64le emulated jobs Co-authored-by: Simon Jakobi <[email protected]>
- Loading branch information
Showing
4 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
branches: | ||
- master | ||
- bytestring-0.11 | ||
pull_request: {} | ||
pull_request: {} # Validate all PRs | ||
|
||
defaults: | ||
run: | ||
|
@@ -60,3 +60,31 @@ jobs: | |
run: | | ||
cd bytestring-*/ | ||
cabal haddock | ||
# 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@v2 | ||
- uses: uraimo/[email protected] | ||
timeout-minutes: 60 | ||
with: | ||
arch: ${{ matrix.arch }} | ||
distro: ubuntu20.04 | ||
githubToken: ${{ github.token }} | ||
install: | | ||
apt-get update -y | ||
apt-get install -y ghc libghc-tasty-quickcheck-dev | ||
run: | | ||
ghc --version | ||
ghc --make -Iinclude -itests:tests/builder -o Main cbits/*.c tests/Main.hs +RTS -s | ||
./Main +RTS -s |
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
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
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