Skip to content

Commit

Permalink
ci: Check package bounds using packdeps once a week
Browse files Browse the repository at this point in the history
This was a part of the release procedure but we should do it proactively
instead.

Related: #393
  • Loading branch information
liskin committed Oct 24, 2021
1 parent d6b4f17 commit 5cc26aa
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/packdeps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Packdeps

on:
workflow_dispatch:
schedule:
# Run every Saturday
- cron: '0 3 * * 6'

jobs:
packdeps:
name: Packdeps
runs-on: ubuntu-latest

steps:
- name: Clone project
uses: actions/checkout@v2
- name: Setup Haskell
uses: haskell/actions/setup@v1
with:
# packdeps doesn't build with newer as of 2021-10
ghc-version: '8.8'
- name: Install packdeps
run: |
set -ex
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
cabal install packdeps
- name: Check package bounds (all)
continue-on-error: true
run: |
set -ex
packdeps \
--exclude X11 \
--exclude xmonad \
*.cabal
- name: Check package bounds (preferred)
run: |
set -ex
packdeps \
--preferred \
--exclude X11 \
--exclude xmonad \
*.cabal

0 comments on commit 5cc26aa

Please sign in to comment.