# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1731688598 -3600
#      Fri Nov 15 17:36:38 2024 +0100
# Branch stable
# Node ID 4550c024329da169cff4b2ca14bf744ff579f6bf
# Parent  af88f2b9b5b7d15440bf6f997a6aeeeace12e3c1
wheels: also build the i686 wheel in the CI

People of weird hardware use i686 so testing the building it useful.

diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml
+++ b/contrib/heptapod-ci.yml
@@ -148,6 +148,48 @@
     needs:
       - "trigger-wheel-musl"
 
+trigger-wheel-i686:
+  extends: .trigger
+  stage: build
+  rules:
+  - if: $CI_COMMIT_BRANCH =~ $RE_BRANCH
+    when: never
+  - if: $CI_COMMIT_BRANCH =~ $RE_TOPIC
+    when: manual
+    allow_failure: true
+
+build-c-wheel-i686:
+  extends: build-c-wheel
+  image: "registry.heptapod.net/mercurial/ci-images/core-wheel-i686-c:v3.0"
+  rules:
+  - if: $CI_COMMIT_BRANCH =~ $RE_BRANCH
+    needs:
+      - trigger-nightly-build
+  - if: $CI_COMMIT_BRANCH =~ $RE_TOPIC
+    needs:
+      - "trigger-wheel-i686"
+
+trigger-wheel-i686-musl:
+  extends: .trigger
+  stage: build
+  rules:
+  - if: $CI_COMMIT_BRANCH =~ $RE_BRANCH
+    when: never
+  - if: $CI_COMMIT_BRANCH =~ $RE_TOPIC
+    when: manual
+    allow_failure: true
+
+build-c-wheel-i686-musl:
+  extends: build-c-wheel
+  image: "registry.heptapod.net/mercurial/ci-images/core-wheel-i686-musl-c:v3.0"
+  rules:
+  - if: $CI_COMMIT_BRANCH =~ $RE_BRANCH
+    needs:
+      - trigger-nightly-build
+  - if: $CI_COMMIT_BRANCH =~ $RE_TOPIC
+    needs:
+      - "trigger-wheel-i686-musl"
+
 .runtests:
     extends: .all
     stage: tests
@@ -603,6 +645,8 @@
     - build-c-wheel-macos
     - build-c-wheel-windows
     - build-c-wheel-musl
+    - build-c-wheel-i686
+    - build-c-wheel-i686-musl
     - test-result-linux
     - test-result-macos
     - test-result-windows