aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/run.sh
blob: 697d7e366fae1f073d558b555b27c022a7ccd60e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
# 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.

export HOME="$PWD"
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/$1 "${@:2}" | \
	sed -E 's#\s*(.+):([0-9]+):([0-9]+): (.+)#\0\n::error file=\1,line=\2,col=\3::\4#'