57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
trigger: none
|
|
# batch: true
|
|
# branches:
|
|
# include:
|
|
# - main
|
|
# paths:
|
|
# exclude:
|
|
# - docs/*
|
|
# - samples/*
|
|
# - tools/*
|
|
|
|
pr: none
|
|
|
|
# 0.0.yyMM.dd##
|
|
# 0.0.1904.0900
|
|
name: 0.0.$(Date:yyMM).$(Date:dd)$(Rev:rr)
|
|
|
|
stages:
|
|
- stage: Build_Fuzz_x64
|
|
displayName: Build Fuzz x64
|
|
dependsOn: []
|
|
condition: succeeded()
|
|
jobs:
|
|
- template: ./templates/build-console-fuzzing.yml
|
|
parameters:
|
|
platform: x64
|
|
- job: OneFuzz
|
|
displayName: OneFuzz
|
|
dependsOn: ['Build_Fuzz_x64']
|
|
condition: succeeded()
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: UsePythonVersion@0
|
|
displayName: Setup Python Env
|
|
inputs:
|
|
versionSpec: '3.x'
|
|
addToPath: true
|
|
architecture: 'x64'
|
|
- bash: |
|
|
set -ex
|
|
pip -q install onefuzz
|
|
onefuzz config --endpoint $(endpoint) --client_id $(client_id) --client_secret $(client_secret)
|
|
onefuzz template libfuzzer basic OpenConsole WriteCharsLegacy $GITHUB_SHA windows --target_exe bin\\x64\\Fuzzing\\OpenConsoleFuzzer.exe
|
|
displayName: Submit OneFuzz Job
|
|
env:
|
|
client_id: client_id
|
|
client_secret: client_secret
|
|
|
|
# How to use onefuzz cli:
|
|
# command: onefuzz template libfuzzer basic <project> <name> <build> <pool> --target_exe <exe_path>
|
|
# project: OpenConsole (doesn't really matter)
|
|
# name: The name of the session (doesn't really matter)
|
|
# build: commit SHA1 (some way to know what build this is from)
|
|
# pool: windows (or linux) (other pools can be used, but we don't need that right now)
|
|
# --target_exe: the generated exe that we want to run (built from fuzzer)
|