aboutsummaryrefslogtreecommitdiff
path: root/infra/cifuzz/actions/build_fuzzers/action.yml
diff options
context:
space:
mode:
Diffstat (limited to 'infra/cifuzz/actions/build_fuzzers/action.yml')
-rw-r--r--infra/cifuzz/actions/build_fuzzers/action.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/infra/cifuzz/actions/build_fuzzers/action.yml b/infra/cifuzz/actions/build_fuzzers/action.yml
new file mode 100644
index 000000000..835b7b430
--- /dev/null
+++ b/infra/cifuzz/actions/build_fuzzers/action.yml
@@ -0,0 +1,43 @@
+# action.yml
+name: 'build-fuzzers'
+description: "Builds an OSS-Fuzz project's fuzzers."
+inputs:
+ oss-fuzz-project-name:
+ description: 'Name of the corresponding OSS-Fuzz project.'
+ required: true
+ language:
+ description: 'Programming language project is written in.'
+ required: false
+ default: 'c++'
+ dry-run:
+ description: 'If set, run the action without actually reporting a failure.'
+ default: false
+ allowed-broken-targets-percentage:
+ description: 'The percentage of broken targets allowed in bad_build_check.'
+ required: false
+ sanitizer:
+ description: 'The sanitizer to build the fuzzers with.'
+ default: 'address'
+ project-src-path:
+ description: "The path to the project's source code checkout."
+ required: false
+ build-integration-path:
+ description: "The path to the the project's build integration."
+ required: false
+ bad-build-check:
+ description: "Whether or not OSS-Fuzz's check for bad builds should be done."
+ required: false
+ default: true
+runs:
+ using: 'docker'
+ image: '../../../build_fuzzers.Dockerfile'
+ env:
+ OSS_FUZZ_PROJECT_NAME: ${{ inputs.oss-fuzz-project-name }}
+ LANGUAGE: ${{ inputs.language }}
+ DRY_RUN: ${{ inputs.dry-run}}
+ ALLOWED_BROKEN_TARGETS_PERCENTAGE: ${{ inputs.allowed-broken-targets-percentage}}
+ SANITIZER: ${{ inputs.sanitizer }}
+ PROJECT_SRC_PATH: ${{ inputs.project-src-path }}
+ BUILD_INTEGRATION_PATH: ${{ inputs.build-integration-path }}
+ LOW_DISK_SPACE: 'True'
+ BAD_BUILD_CHECK: ${{ inputs.bad-build-check }}