From be73f86d0b24caf146ecbe5e4a7c12c3c8d7192a Mon Sep 17 00:00:00 2001
From: Cheng Shao <terrorjack@type.dance>
Date: Mon, 14 Apr 2025 11:56:00 +0000
Subject: [PATCH] ci: add a chimera linux job to test bsd userland

---
 .gitlab-ci.yml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3046e5d..e74868e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -113,6 +113,31 @@ x86_64-linux-ubuntu-9.12:
     - ./tests/miso-ormolu.sh
     - ./tests/pandoc.sh
 
+x86_64-linux-chimera-9.12:
+  tags:
+    - x86_64-linux
+  image: terrorjack/chimera:bash
+  rules:
+    - if: $UPSTREAM_GHC_FLAVOUR == null
+  before_script:
+    - |
+      apk upgrade --no-interactive
+      apk add --no-interactive \
+        curl \
+        firefox \
+        gmake \
+        jq \
+        libarchive-progs
+      cd /usr/bin
+      ln -s bsdunzip unzip
+      cd $OLDPWD
+  script:
+    - |
+      PREFIX=/tmp/.ghc-wasm ./setup.sh
+      sed -i "" "s/\$ncpus/$CPUS/" /tmp/.ghc-wasm/.cabal/config
+      . /tmp/.ghc-wasm/env
+    - ./tests/ghci.sh
+
 .nix:
   rules:
     - if: $UPSTREAM_GHC_FLAVOUR == null
-- 
GitLab