Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build 32bit on CI #153

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
_build
.git
async
mirage
h2-async.opam
h2-mirage.opam
28 changes: 28 additions & 0 deletions .github/workflows/test_32bit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Build & Test (32 bit)'
on:
pull_request:
push:
branches:
- master

jobs:
docker-32bit:
runs-on: ubuntu-latest
container:
image: ocurrent/opam@sha256:e7a75342370514e1adf20c6c95102bb37dddefd5ad205c457e4aa72012283960
steps:
- uses: actions/checkout@v1
- name: Print the result of `uname -a`
run: uname -a
- name: apt-get update
run: sudo apt-get update && sudo apt-get upgrade -y
- name: opam update
run: opam update && opam upgrade
- name: opam depext conf-pkg-config conf-gmp conf-m4
run: opam pin add . -n
- name: Install OPAM dependencies
run: opam install -y --deps-only . -t
- name:
run: opam install -y --deps-only . -t
- name:
run: opam exec -- dune runtest
17 changes: 17 additions & 0 deletions Dockerfile.32bit
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# https://discuss.ocaml.org/t/how-to-generate-a-32-bit-binary-on-a-64-bit-system/6163/6
FROM ocurrent/opam@sha256:e7a75342370514e1adf20c6c95102bb37dddefd5ad205c457e4aa72012283960

WORKDIR /home/opam/src

RUN sudo apt-get update && sudo apt-get upgrade -y
RUN sudo apt-get install vim -y

RUN opam update && opam upgrade

RUN opam depext conf-pkg-config conf-gmp conf-m4
RUN opam install h2 h2-lwt-unix --deps-only -t

COPY --chown=opam . /home/opam/src

# ENTRYPOINT