The document says "Jobs run in parallel by default. ". When I tried workflow in github-hosted runners, jobs do run in parallel. However, when I try to run the workflow in self-hosted runners, the jobs do not seem to run in parallel. I’ve tried in both macos and centos with the latest version runner v2.165.2.
Is it that jobs only run in parallel in github-hosted runners?
My work flow is as follows:
on: [push] jobs: Synthesize: runs-on: self-hosted steps: - uses: actions/checkout@v2 - run: | ./code_generation.sh - run: | ./basic_verification.sh - run: | ./synthesis.sh Estimation: runs-on: self-hosted needs: Synthesize steps: - name: check run: | pwd ls - name: start time run: | date - name: sleep run: | sleep 8 - name: end time run: | date Deeper_Verification: runs-on: self-hosted needs: Synthesize steps: - name: check run: | pwd ls - name: start time run: | date - name: sleep run: | sleep 8 - name: end time run: | date
And the runner output in CentOS is as follows:
2020-03-06 05:41:01Z: Listening for Jobs 2020-03-06 05:42:38Z: Running job: Synthesize 2020-03-06 05:42:46Z: Job Synthesize completed with result: Succeeded 2020-03-06 05:42:51Z: Running job: Deeper_Verification 2020-03-06 05:43:02Z: Job Deeper_Verification completed with result: Succeeded 2020-03-06 05:43:04Z: Running job: Estimation 2020-03-06 05:43:15Z: Job Estimation completed with result: Succeeded