-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Check package bounds using packdeps once a week
This was a part of the release procedure but we should do it proactively instead. Related: #393
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |