Skip to content

GitHub Actions backend doesn't respect jobs, resulting in lack of build parallelism #551

Closed
@RyanGlScott

Description

@RyanGlScott

In the haskell-ci–generated GitHub Actions workflow for transformers-compat, I noticed that despite settings jobs: 2, the dependencies were being built sequentially. On the other hand, this doesn't happen with the Travis backend:

-- Cabal jobs
for_ (cfgJobs >>= cabalJobs) $ \n ->
sh $ "echo 'jobs: " ++ show n ++ "' >> $CABALHOME/config"
-- GHC jobs + ghc-options
for_ (cfgJobs >>= ghcJobs) $ \m -> do
shForJob (Range $ C.orLaterVersion (C.mkVersion [7,8])) $ "GHCJOBS=-j" ++ show m

The GitHub Actions backend should do something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions