diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-06-01 19:09:18 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-02 13:39:30 +0200 |
| commit | 52fd7b7d77d5d922e0a2ca3c28785a6ad450b49b (patch) | |
| tree | 078ed471ef37c15f74c79f23f4100efd333840ca /.github | |
| parent | 2b26ad000f9259381f3a6f7526660a3444784707 (diff) | |
tools: add syz-big-env
On top of syz-env it provides akaros/fuchsia/netbsd toolchains and gcloud sdk.
With this it's possible to run dashboard/app tests on CI and locally
and test executor build and pkg/{csource,cover} for these OSes.
Update #1765
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 47 | ||||
| -rwxr-xr-x | .github/workflows/run.sh | 2 |
2 files changed, 43 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0677240d..e9c332cf9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,12 +25,34 @@ jobs: key: cache # Run make presubmit_smoke. - name: run - run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh make presubmit_smoke - # Upload coverage report to codecov.io. + run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_smoke + # Upload coverage report to codecov.io. For reference see: + # https://github.com/codecov/codecov-action/blob/master/README.md - name: codecov uses: codecov/codecov-action@v1 with: file: gopath/src/github.com/google/syzkaller/.coverage.txt + flags: unittests + dashboard: + runs-on: ubuntu-latest + needs: [smoke] + 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-big-env make presubmit_big + - name: codecov + uses: codecov/codecov-action@v1 + with: + file: gopath/src/github.com/google/syzkaller/.coverage.txt + flags: dashboard arch: runs-on: ubuntu-latest needs: [smoke] @@ -45,7 +67,22 @@ jobs: path: .cache key: cache - name: run - run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh make presubmit_arch + run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-big-env make presubmit_arch + race: + runs-on: ubuntu-latest + needs: [smoke] + 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_race fuzzit: runs-on: ubuntu-latest needs: [smoke] @@ -61,9 +98,9 @@ jobs: key: cache - name: regression if: ${{ github.event_name == 'pull_request' }} - run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh tools/fuzzit.sh local-regression + run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env tools/fuzzit.sh local-regression - name: fuzzing if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} env: FUZZIT_API_KEY: ${{ secrets.FUZZIT_API_KEY }} - run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh tools/fuzzit.sh fuzzing + run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env tools/fuzzit.sh fuzzing diff --git a/.github/workflows/run.sh b/.github/workflows/run.sh index 82fc6fa05..697d7e366 100755 --- a/.github/workflows/run.sh +++ b/.github/workflows/run.sh @@ -7,5 +7,5 @@ mkdir -p .cache set -o pipefail # Run the specified command in syz-env and convert error messages to github format: # https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message -gopath/src/github.com/google/syzkaller/tools/syz-env $@ | \ +gopath/src/github.com/google/syzkaller/tools/$1 "${@:2}" | \ sed -E 's#\s*(.+):([0-9]+):([0-9]+): (.+)#\0\n::error file=\1,line=\2,col=\3::\4#' |
