Skip to content

Commit 68930eb

Browse files
committed
Add CI on 32bit Linux
(Stolen from the bytestring project)
1 parent 753e214 commit 68930eb

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

.github/workflows/32bit-ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: 32bit-ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request: {} # Validate all PRs
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
os: [ubuntu-latest]
15+
ghc: ['8.6', '8.8', '8.10', '9.0', '9.2', '9.4', '9.6', '9.8', '9.10', '9.12']
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: haskell-actions/setup@v2
19+
id: setup-haskell-cabal
20+
with:
21+
ghc-version: ${{ matrix.ghc }}
22+
- name: Update cabal package database
23+
run: cabal update
24+
- uses: actions/cache@v3
25+
name: Cache cabal stuff
26+
with:
27+
path: |
28+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
29+
dist-newstyle
30+
key: ${{ runner.os }}-${{ matrix.ghc }}
31+
- name: Test
32+
run: |
33+
cabal sdist -z -o .
34+
cabal get unordered-containers-*.tar.gz
35+
cd unordered-containers-*/
36+
cabal build unordered-containers:tests --enable-tests --enable-benchmarks
37+
cabal test --enable-tests --enable-benchmarks --test-show-details=direct all
38+
- name: Bench
39+
run: |
40+
cd unordered-containers-*/
41+
cabal bench --enable-tests --enable-benchmarks --benchmark-option=-l all
42+
- name: Haddock
43+
run: |
44+
cd unordered-containers-*/
45+
cabal haddock all
46+
- name: Cabal check
47+
run: |
48+
cd unordered-containers-*/
49+
cabal check
50+
51+
i386:
52+
needs: build
53+
runs-on: ubuntu-latest
54+
container:
55+
image: i386/ubuntu:bionic
56+
steps:
57+
- name: Install
58+
run: |
59+
apt-get update -y
60+
apt-get install -y autoconf build-essential zlib1g-dev libgmp-dev curl libncurses5 libtinfo5 libncurses5-dev libtinfo-dev
61+
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 sh
62+
- uses: actions/checkout@v1 #This version must stay old enough to remain compatible with the container image
63+
- name: Test
64+
run: |
65+
source ~/.ghcup/env
66+
cabal update
67+
cabal test

0 commit comments

Comments
 (0)