File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -161,3 +161,31 @@ jobs:
161
161
cabal test
162
162
cabal bench
163
163
164
+ # Emulation is incredibly slow and memory demanding. It seems that any
165
+ # executable with GHC RTS takes at least 7-8 Gb of RAM, so we can run
166
+ # `cabal` or `ghc` on their own, but cannot run them both at the same time,
167
+ # striking out `cabal test`. Instead we rely on system packages and invoke
168
+ # `ghc --make` manually, and even so `ghc -O` is prohibitively expensive.
169
+ emulated :
170
+ runs-on : ubuntu-latest
171
+ strategy :
172
+ fail-fast : true
173
+ matrix :
174
+ arch : ['s390x', 'ppc64le']
175
+ steps :
176
+ - uses : actions/checkout@v4
177
+
178
+ timeout-minutes : 60
179
+ with :
180
+ arch : ${{ matrix.arch }}
181
+ distro : ubuntu_rolling
182
+ githubToken : ${{ github.token }}
183
+ install : |
184
+ apt-get update -y
185
+ apt-get install -y curl ghc libghc-tasty-quickcheck-dev libghc-syb-dev
186
+ run : |
187
+ ghc --version
188
+ ghc --make -itests:tests/bytestring-tests -o Main tests/bytestring-tests/Main.hs +RTS -s
189
+ ./Main +RTS -s
190
+ ghc --make -itests:tests/encoding -o Main tests/encoding/Main.hs +RTS -s
191
+ ./Main +RTS -s
You can’t perform that action at this time.
0 commit comments