diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-12-21 13:57:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-12-21 18:52:46 +0100 |
| commit | c6f13480f3e562921f700b3e4f878ca5d54d958f (patch) | |
| tree | f6d9ad5ff41ed2bad1398df19b216caa1f686080 /.github/workflows | |
| parent | 5911a9c70592ec2cf05c7c342f54f567dfe1901d (diff) | |
.github/workflows: split work across more jobs
CI become quite slow, especially the 'arch' job.
Split it into 3 separate jobs.
Also split main build/lint/test from all of the aux checks.
Update #2886
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97b993a42..6da8258e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ name: ci on: [push, pull_request] jobs: - smoke: + aux: runs-on: ubuntu-latest steps: # Checks out syzkaller repo at the path. @@ -25,13 +25,27 @@ jobs: with: path: .cache key: cache - # Run make presubmit_smoke. + # Run make presubmit_aux. - name: run env: GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} GITHUB_PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} GITHUB_PR_COMMITS: ${{ github.event.pull_request.commits }} - run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_smoke + run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_aux + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + with: + path: gopath/src/github.com/google/syzkaller + - name: cache + uses: actions/cache@v1 + with: + path: .cache + key: cache + - name: run + run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_build # Upload coverage report to codecov.io. For reference see: # https://github.com/codecov/codecov-action/blob/master/README.md - name: codecov @@ -60,6 +74,9 @@ jobs: flags: dashboard arch: runs-on: ubuntu-latest + strategy: + matrix: + target: [presubmit_arch_linux, presubmit_arch_freebsd, presubmit_arch_other, presubmit_arch_executor] steps: - name: checkout uses: actions/checkout@v2 @@ -71,7 +88,7 @@ jobs: path: .cache key: cache - name: run - run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-big-env make presubmit_arch + run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-big-env make ${{ matrix.target }} race: runs-on: ubuntu-latest steps: |
