-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
45 lines (45 loc) · 1.39 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Coderrect Scan
description: >
Coderrect detects concurrency bugs and multithreading errors in multithreaded programs (e.g., data races, race conditions).
branding:
icon: check
color: green
inputs:
buildCommand:
description: "Custom build command"
required: false
default: "make -j"
cleanCommand:
description: "Custom clean command"
required: false
default: "make clean || true"
buildPath:
description: "The relative path for your build directory"
required: false
default: "."
options:
description: "Command line options for Coderrect Scanner"
required: false
default: "-analyzeAllBinaries"
exit0:
description: "Force Coderrect to exit with 0 even when races are detected"
required: false
default: false
runs:
using: composite
steps:
- run: |
wget -q https://public-installer-pkg.s3.us-east-2.amazonaws.com/coderrect-linux-develop.tar.gz
tar zxf coderrect-linux-develop.tar.gz
echo "$PWD/coderrect-linux-develop/bin" >> $GITHUB_PATH
cd ${{ inputs.buildPath }}
${{ inputs.cleanCommand }}
shell: bash
- run: |
cd ${{ inputs.buildPath }}
coderrect -noprogress ${{ inputs.options }} ${{ inputs.buildCommand }}
shell: bash
- run: |
cd ${{ inputs.buildPath }}
coderrect -publish.cloud="DEFAULT" -publish.exit0=${{ inputs.exit0 }}
shell: bash