diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index d385e5367d..5f36b7a567 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -54,3 +54,5 @@ jobs: ci: needs: rebuild-docker-build-image uses: ./.github/workflows/ci.yml + with: + run_sdk_examples: true diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 372690b67c..0da93b38b7 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -38,6 +38,8 @@ jobs: ci: needs: acquire-base-image uses: ./.github/workflows/ci.yml + with: + run_sdk_examples: true # The PR bot requires a Docker build image, so make it depend on the `acquire-base-image` job. pr_bot: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2404ca30d2..7066b79883 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,8 +5,15 @@ # on if a pull request is being checked, or if the `main` branch is being checked after merge. name: Test + on: workflow_call: + inputs: + run_sdk_examples: + description: Whether to run the SDK example checks or not. + required: false + default: false + type: boolean env: rust_version: 1.62.1 @@ -244,6 +251,7 @@ jobs: # This job is split out from the rest since it is not required to pass for merge check-sdk-examples: name: Check SDK Examples + if: ${{ inputs.run_sdk_examples == 'true' }} needs: generate runs-on: ubuntu-latest steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abeed0601c..b4ac6c289c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,6 +64,8 @@ jobs: needs: - acquire-base-image uses: ./.github/workflows/ci.yml + with: + run_sdk_examples: false release: name: Release