Skip to content

Commit 858fb07

Browse files
authored
Merge pull request #335 from jmid/test-32-bit
Add CI testing on 32-bit i386 of OCaml 4.14 and 5.3 via Docker containers
2 parents 5df42e5 + 30f6239 commit 858fb07

File tree

1 file changed

+38
-7
lines changed

1 file changed

+38
-7
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,41 @@ jobs:
3232
ocaml-compiler: "4.12"
3333
runs-on: ${{ matrix.os }}
3434
steps:
35-
- uses: actions/checkout@v4
36-
- uses: ocaml/setup-ocaml@v3
37-
with:
38-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
39-
- run: opam install . --deps-only --with-test
40-
- run: opam exec -- dune build
41-
- run: opam exec -- dune runtest
35+
- uses: actions/checkout@v4
36+
- uses: ocaml/setup-ocaml@v3
37+
with:
38+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
39+
- run: opam update -y
40+
- run: opam install . --deps-only --with-test
41+
- run: opam exec -- dune build
42+
- run: opam exec -- dune runtest
43+
44+
i386:
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
container-image:
49+
- ocaml/opam:debian-12-ocaml-4.14
50+
- ocaml/opam:debian-12-ocaml-5.3
51+
runs-on: ubuntu-latest
52+
container:
53+
image: ${{ matrix.container-image }}
54+
options: --platform linux/i386
55+
steps:
56+
# GitHub insists on HOME=/github/home which clashes with the opam image setup
57+
- name: Setup, init, and update opam
58+
run: |
59+
sudo cp /usr/bin/opam-2.3 /usr/bin/opam
60+
cd /home/opam && HOME=/home/opam opam init -y
61+
git -C /home/opam/opam-repository pull origin master && HOME=/home/opam opam update -y
62+
- name: Checkout repository
63+
# See https://github.com/actions/checkout/issues/334
64+
uses: actions/checkout@v1
65+
- name: Setup repo and install dependencies
66+
run: |
67+
sudo chown -R opam:opam .
68+
HOME=/home/opam opam install . --deps-only --with-test
69+
- name: Build
70+
run: HOME=/home/opam opam exec -- dune build
71+
- name: Run the testsuite
72+
run: HOME=/home/opam opam exec -- dune runtest

0 commit comments

Comments
 (0)