-
Notifications
You must be signed in to change notification settings - Fork 188
Run CI on a big-endian system #1180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+60
−10
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6c0bf49
Run CI on a big-endian system
meooow25 55df8b1
Try deps list from https://www.haskell.org/ghcup/install/#linux-ubuntu
meooow25 4060884
GHCup doesn't work, try apt-get
meooow25 e322487
Missed a GHCup line
meooow25 6563acd
Verbose cabal update
meooow25 c9e7a86
Try older Ubuntu
meooow25 585ba06
Add note about ubuntu24.04
meooow25 8eb3a24
Allow writing packages
meooow25 d975993
Test without optimizations
meooow25 c4482b2
Turn optimizations off for everything
meooow25 03ad6c2
Install g++
meooow25 8eab17f
Try s390x container
meooow25 be0ebe6
Revert "Try s390x container"
meooow25 ae9effe
Try ubuntu_rolling (currently ubuntu25)
meooow25 3e152e1
Try no g++
meooow25 f0b83af
Add back g++
meooow25 984fc67
Try keeping only containers-tests
meooow25 0ff70fe
Try --jobs=2
meooow25 4c8b01f
Fix cabal update, don't build bench
meooow25 4d00342
That didn't change anything, try ghc -j2
meooow25 e963175
That didn't help either
meooow25 128fa93
Try installing tasty libs with apt
meooow25 97e7f68
Revert "Try installing tasty libs with apt"
meooow25 17c573f
Try without g++
meooow25 00757fe
Try some GHC RTS options
meooow25 d54c94b
Remove -O2 from test components
meooow25 63e9542
Force -O0 for containers-tests
meooow25 81ae39d
Try without -j
meooow25 6e94f24
Try smaller -A
meooow25 4751c48
Try without ghc RTS options
meooow25 080ff3e
Check num processors
meooow25 971987c
Revert "Check num processors"
meooow25 8de8888
Test with big-endian bug
meooow25 32b5221
Revert "Test with big-endian bug"
meooow25 b65b3c0
Tweak
meooow25 b78d990
On second thoughts, keep these separate
meooow25 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,56 @@ | ||
| name: s390x CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| # s390x is 31-bit-address/32-bit-data and big-endian | ||
| s390x: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| # Not required, but speeds up builds by storing container images in a | ||
| # GitHub package registry. | ||
| permissions: | ||
| packages: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: uraimo/run-on-arch-action@v3 | ||
| with: | ||
| arch: s390x | ||
|
|
||
| # ubuntu_rolling is currently Ubuntu 25. Consider switching this to an | ||
| # LTS. | ||
| # Do not use ubuntu24.04 since it comes with ghc and cabal versions that | ||
| # segfault (possibly https://gitlab.haskell.org/ghc/ghc/-/issues/24163). | ||
| distro: ubuntu_rolling | ||
|
|
||
| # Not required, but speeds up builds by storing container images in a | ||
| # GitHub package registry. | ||
| githubToken: ${{ github.token }} | ||
|
|
||
| # Install GHC via apt because GHCup doesn't support s390x | ||
| install: | | ||
| apt-get update -y | ||
| apt-get install -y ghc cabal-install | ||
|
|
||
| # Test without optimizations because it is much slower otherwise | ||
| run: | | ||
| ghc --version | ||
| cabal --version | ||
| sed -i 's/containers\//-- &/' cabal.project | ||
| cat cabal.project | ||
| cat >> cabal.project.local <<EOF | ||
| package * | ||
| optimization: 0 | ||
| package containers-tests | ||
| -- This overrides the -O2 in containers-tests's ghc-options | ||
| ghc-options: -O0 | ||
| EOF | ||
| cabal update | ||
| cabal test all |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.