init #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 syzkaller project authors. All rights reserved. | |
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. | |
# GitHub workflow reference: | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: ci | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
aux: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks out syzkaller repo at the path. | |
- name: checkout | |
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 | |
with: | |
path: gopath/src/github.com/google/syzkaller | |
# This is needed for tools/check-commits.sh | |
fetch-depth: 100 | |
# Caches everything in .cache dir, in partiuclar we want to cache go-build and golangci-lint stuff. | |
# For reference see: | |
# https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action | |
- name: cache | |
uses: actions/cache@99d99cd262b87f5f8671407a1e5c1ddfa36ad5ba # v1 | |
with: | |
path: .cache | |
key: cache | |
# 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_aux | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 | |
with: | |
path: gopath/src/github.com/google/syzkaller | |
- name: cache | |
uses: actions/cache@99d99cd262b87f5f8671407a1e5c1ddfa36ad5ba # 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 | |
uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 # v1 | |
with: | |
file: gopath/src/github.com/google/syzkaller/.coverage.txt | |
flags: unittests | |
dashboard: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 | |
with: | |
path: gopath/src/github.com/google/syzkaller | |
- name: cache | |
uses: actions/cache@99d99cd262b87f5f8671407a1e5c1ddfa36ad5ba # 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@29386c70ef20e286228c72b668a06fd0e8399192 # v1 | |
with: | |
file: gopath/src/github.com/google/syzkaller/.coverage.txt | |
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@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 | |
with: | |
path: gopath/src/github.com/google/syzkaller | |
- name: cache | |
uses: actions/cache@99d99cd262b87f5f8671407a1e5c1ddfa36ad5ba # v1 | |
with: | |
path: .cache | |
key: cache | |
- name: run | |
run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-big-env make ${{ matrix.target }} | |
race: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 | |
with: | |
path: gopath/src/github.com/google/syzkaller | |
- name: cache | |
uses: actions/cache@99d99cd262b87f5f8671407a1e5c1ddfa36ad5ba # v1 | |
with: | |
path: .cache | |
key: cache | |
- name: run | |
run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_race | |
old: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 | |
with: | |
path: gopath/src/github.com/google/syzkaller | |
- name: cache | |
uses: actions/cache@99d99cd262b87f5f8671407a1e5c1ddfa36ad5ba # v1 | |
with: | |
path: .cache | |
key: cache | |
- name: run | |
run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-old-env make presubmit_old |