A job matrix can generate a maximum of 256 jobs per workflow run. This limit also applies to self-hosted runners.