diff options
| author | Alexander 'ccntrq' Pankoff <ccntrq@screenri.de> | 2026-06-18 15:53:10 +0200 |
|---|---|---|
| committer | Alexander 'ccntrq' Pankoff <ccntrq@screenri.de> | 2026-06-23 11:42:36 +0200 |
| commit | 7e04e1156205d9ca4fcfccc12957b2a6abdc8b86 (patch) | |
| tree | 1dbec726cc6d1d1b32769c2836307fe4de8f8f36 | |
| parent | 1d11e75205e25dab4869205a0a05178340d24aff (diff) | |
| download | xmobar-7e04e1156205d9ca4fcfccc12957b2a6abdc8b86.tar.gz xmobar-7e04e1156205d9ca4fcfccc12957b2a6abdc8b86.tar.bz2 | |
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
| -rw-r--r-- | .woodpecker/build.yaml | 32 |
1 files changed, 32 insertions, 0 deletions
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 |
