Skip to content

Commit 180c65e

Browse files
authored
Add CI to test on i386 (#1147)
The configuration is taken from the bytestring package at https://github.com/haskell/bytestring/blob/c63dd723/.github/workflows/ci.yml#L186 Drop an unused import and fix a missing include.
1 parent 5f05b41 commit 180c65e

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

.github/workflows/i386.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: i386 CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
jobs:
16+
i386:
17+
runs-on: ubuntu-latest
18+
container:
19+
image: i386/ubuntu:bionic
20+
steps:
21+
- name: Install
22+
run: |
23+
apt-get update -y
24+
apt-get install -y autoconf build-essential zlib1g-dev libgmp-dev curl libncurses5 libtinfo5 libncurses5-dev libtinfo-dev
25+
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 sh
26+
- uses: actions/checkout@v1 # This version must stay old enough to remain compatible with the container image
27+
- name: Test
28+
run: |
29+
source ~/.ghcup/env
30+
cabal update
31+
cabal test all

containers-tests/tests/IntSetValidity.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import Data.List (intercalate)
88
import Numeric (showHex)
99
import Test.Tasty.QuickCheck (Property, counterexample, property, (.&&.))
1010

11+
#include "containers.h"
12+
1113
{--------------------------------------------------------------------
1214
Assertions
1315
--------------------------------------------------------------------}

containers/src/Data/IntSet/Internal.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,6 @@ import Data.Coerce (coerce)
226226

227227
#if __GLASGOW_HASKELL__
228228
import qualified GHC.Exts
229-
# if !(WORD_SIZE_IN_BITS==64)
230-
import qualified GHC.Int
231-
# endif
232229
import Language.Haskell.TH.Syntax (Lift)
233230
-- See Note [ Template Haskell Dependencies ]
234231
import Language.Haskell.TH ()

0 commit comments

Comments
 (0)