Skip to content

Commit 9ee657b

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

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

.github/workflows/32bit-ci.yml

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

0 commit comments

Comments
 (0)