Skip to content

Commit a6741a4

Browse files
committed
Try to add check for 32-bit platform on CI
1 parent 29ba9a6 commit a6741a4

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,30 @@ jobs:
117117
run: |
118118
cabal bench all
119119
working-directory: unpacked/
120+
# Job for checking that vector is buildable and works correctly on 32-bit
121+
# systems. Adapted from bitvec's CI setup
122+
i386:
123+
needs: build
124+
runs-on: ubuntu-latest
125+
container:
126+
image: i386/ubuntu:bionic
127+
steps:
128+
- name: Install
129+
run: |
130+
apt-get update -y
131+
apt-get install -y autoconf build-essential zlib1g-dev libgmp-dev curl libncurses5 libtinfo5 libncurses5-dev libtinfo-dev
132+
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 sh
133+
- uses: actions/checkout@v4
134+
# ----------------
135+
- name: Versions
136+
run: |
137+
cabal -V
138+
ghc -V
139+
ghc --info
140+
# ----------------
141+
- name: Test
142+
run: |
143+
source ~/.ghcup/env
144+
cabal --version
145+
cabal update
146+
cabal test --enable-tests --test-show-details=direct

0 commit comments

Comments
 (0)