From 7e04e1156205d9ca4fcfccc12957b2a6abdc8b86 Mon Sep 17 00:00:00 2001 From: Alexander 'ccntrq' Pankoff Date: Thu, 18 Jun 2026 15:53:10 +0200 Subject: Implement woodpecker ci workflow This commits implements a ci workflow for Codeberg's hosted woodpecker instances that verifies xmobar can be built with the ghc versions we claim support for. Currently there is a known issue with ghc>9.12.2 (https://github.com/gtk2hs/gtk2hs/issues/348) that's why we don't run the built with ghc 9.12 and 9.14 until that issue is resolved upstream Closes: #784 --- .woodpecker/build.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .woodpecker/build.yaml (limited to '.woodpecker') diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..6243323 --- /dev/null +++ b/.woodpecker/build.yaml @@ -0,0 +1,32 @@ +when: + - event: [push, pull_request] + +matrix: + GHC: + # - '9.14' currently broken due to: https://github.com/gtk2hs/gtk2hs/issues/348 + # - '9.12' currently broken due to: https://github.com/gtk2hs/gtk2hs/issues/348 + - '9.10' + - '9.8' + - '9.6' + +steps: + - name: hlint + image: haskell:${GHC} + commands: + - apt-get update && apt-get install -y hlint + - hlint src + + - name: build-and-test + image: haskell:${GHC} + commands: + - apt-get update + - >- + apt-get install -y + xorg-dev libxrandr-dev libpango1.0-dev + libasound2-dev libxpm-dev libmpd-dev + hspec-discover + - cabal update + - cabal build all --only-dependencies --enable-tests -fall_extensions --disable-documentation + - cabal build all --enable-tests -fall_extensions --disable-documentation + - cabal test all --enable-tests -fall_extensions --disable-documentation + - cabal test all --enable-tests -fall_extensions -f-with_xrender --disable-documentation -- cgit v1.2.3