-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a CI workflow for big endian architectures
This is in order to test the WORDS_BIGENDIAN code path.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: emulated | ||
on: | ||
- push | ||
- pull_request | ||
|
||
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: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
arch: ['s390x', 'ppc64le'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- 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 ghc cabal-install alex | ||
run: | | ||
cabal build | ||
$(cabal list-bin alex) -g tests/simple.x | ||
ghc simple.hs | ||
./simple +RTS -s |