Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
devigned committed Nov 8, 2024
1 parent e49835f commit f519ac1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ValidatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ jobs:
rust:
needs:
- docs-pr
if: ${{needs.docs-pr.outputs.not-just-docs == 'true'}}
uses: ./.github/workflows/dep_rust.yml
secrets: inherit
with:
docs_only: ${{needs.docs-pr.outputs.not-just-docs == 'false'}}
fuzzing:
needs:
- docs-pr
if: ${{needs.docs-pr.outputs.not-just-docs == 'true'}}
uses: ./.github/workflows/dep_fuzzing.yml
with:
max_total_time: 300 # 5 minutes in seconds
docs_only: ${{needs.docs-pr.outputs.not-just-docs == 'false'}}
secrets: inherit

#####
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/dep_fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ on:
description: Maximum total time for the fuzz run in seconds
required: true
type: number
docs_only:
description: If docs only, don't fuzz, just complete successfully
required: false
type: string
default: "false"

permissions:
id-token: write
contents: read

jobs:
fuzz:
if: ${{ inputs.docs_only == 'true' }}
runs-on: [ self-hosted, Linux, X64, "1ES.Pool=hld-kvm-amd" ]
steps:
- name: Checkout code
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/dep_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ name: Rust Tests and Lints
# See README.md in this directory for more information about workflow_call
on:
workflow_call:
inputs:
docs_only:
description: If docs only, don't fuzz, just complete successfully
required: false
type: string
default: "false"

env:
CARGO_TERM_COLOR: always
Expand All @@ -16,6 +22,7 @@ permissions:

jobs:
build:
if: ${{inputs.docs_only == 'true'}}
strategy:
fail-fast: true
matrix:
Expand Down

0 comments on commit f519ac1

Please sign in to comment.