From c6f13480f3e562921f700b3e4f878ca5d54d958f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 21 Dec 2021 13:57:26 +0100 Subject: .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 --- .github/workflows/ci.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to '.github/workflows') 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: -- cgit mrf-deployment