Skip to content

Commit c3de8a3

Browse files
authored
Separate check-sdk-examples step and remove it from release checks (#2088)
* Run examples based on flag * Specify input in ci.yml * Try to make ci.yml valid * Add input description * Put inputs under workflow_call * Add type boolean
1 parent adf98a3 commit c3de8a3

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.github/workflows/ci-main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ jobs:
5454
ci:
5555
needs: rebuild-docker-build-image
5656
uses: ./.github/workflows/ci.yml
57+
with:
58+
run_sdk_examples: true

.github/workflows/ci-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
ci:
3939
needs: acquire-base-image
4040
uses: ./.github/workflows/ci.yml
41+
with:
42+
run_sdk_examples: true
4143

4244
# The PR bot requires a Docker build image, so make it depend on the `acquire-base-image` job.
4345
pr_bot:

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
# on if a pull request is being checked, or if the `main` branch is being checked after merge.
66

77
name: Test
8+
89
on:
910
workflow_call:
11+
inputs:
12+
run_sdk_examples:
13+
description: Whether to run the SDK example checks or not.
14+
required: false
15+
default: false
16+
type: boolean
1017

1118
env:
1219
rust_version: 1.62.1
@@ -244,6 +251,7 @@ jobs:
244251
# This job is split out from the rest since it is not required to pass for merge
245252
check-sdk-examples:
246253
name: Check SDK Examples
254+
if: ${{ inputs.run_sdk_examples == 'true' }}
247255
needs: generate
248256
runs-on: ubuntu-latest
249257
steps:

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
needs:
6565
- acquire-base-image
6666
uses: ./.github/workflows/ci.yml
67+
with:
68+
run_sdk_examples: false
6769

6870
release:
6971
name: Release

0 commit comments

Comments
 (0)