diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index d71fac4..eebf097 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -16,6 +16,9 @@ jobs: matrix: cabal: ["3.10"] ghc: ["8.8.4", "8.10.7", "9.0.2", "9.2.8", "9.4.6", "9.6.3"] + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.cabal }}-${{matrix.ghc}} + cancel-in-progress: true env: CONFIG: "--enable-tests" steps: diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 77fe7c6..963e5d7 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -20,6 +20,9 @@ jobs: - ghc92 - ghc94 - ghc96 + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.ghc }} + cancel-in-progress: true steps: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v19