Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a workflow to dry run cabal-install #10740

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/check-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Check sdist

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
push:
paths:
- 'Cabal-QuickCheck/**'
- 'Cabal-described/**'
- 'Cabal-hooks/**'
- 'Cabal-syntax/**'
- 'Cabal-tests/**'
- 'Cabal-tree-diff/**'
- 'Cabal/**'
- 'cabal-install-solver/**'
- 'cabal-install/**'
- '!Cabal-tests/test/**'
- '!cabal-testsuite/PackageTests/**'
pull_request:
paths:
- 'Cabal-QuickCheck/**'
- 'Cabal-described/**'
- 'Cabal-hooks/**'
- 'Cabal-syntax/**'
- 'Cabal-tests/**'
- 'Cabal-tree-diff/**'
- 'Cabal/**'
- 'cabal-install-solver/**'
- 'cabal-install/**'
- '!Cabal-tests/test/**'
- '!cabal-testsuite/PackageTests/**'
release:
types:
- created

jobs:

cabal-install-dry-run:
name: cabal install with ghc-${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
ghc:
["9.12.1"]

steps:

- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: latest

- uses: actions/checkout@v4

- run: cabal sdist Cabal
- run: cabal sdist Cabal-QuickCheck
- run: cabal sdist Cabal-described
- run: cabal sdist Cabal-hooks
- run: cabal sdist Cabal-syntax
- run: cabal sdist Cabal-tests
- run: cabal sdist Cabal-tree-diff
- run: cabal sdist cabal-install
- run: cabal sdist cabal-install-solver
2 changes: 1 addition & 1 deletion Cabal-hooks/Cabal-hooks.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ category: Distribution
build-type: Simple

extra-source-files:
README.md CHANGELOG.md
readme.md changelog.md

source-repository head
type: git
Expand Down
Loading