CI: whitelist examples runs
This commit is contained in:
parent
5539e7c5ad
commit
b401851511
26
.github/workflows/rust.yml
vendored
26
.github/workflows/rust.yml
vendored
@ -226,24 +226,26 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- run: cargo install --path sea-orm-cli --debug
|
- run: cargo install --path sea-orm-cli --debug
|
||||||
|
|
||||||
examples-matrix:
|
|
||||||
name: Examples Matrix
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- id: set-matrix
|
|
||||||
run: echo "path_matrix=$(find examples -mindepth 1 -maxdepth 1 -type d -not -path 'examples/rocket_okapi_example' -printf '%P\0' | jq -Rc '[ split("\u0000") | .[] | "examples/\(.)" ]')" >> $GITHUB_OUTPUT
|
|
||||||
outputs:
|
|
||||||
path_matrix: ${{ steps.set-matrix.outputs.path_matrix }}
|
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
name: Examples
|
name: Examples
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: examples-matrix
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
path: ${{ fromJson(needs.examples-matrix.outputs.path_matrix) }}
|
path: [
|
||||||
|
examples/actix_example,
|
||||||
|
examples/actix3_example,
|
||||||
|
# examples/rocket_okapi_example,
|
||||||
|
examples/jsonrpsee_example,
|
||||||
|
examples/basic,
|
||||||
|
examples/salvo_example,
|
||||||
|
examples/rocket_example,
|
||||||
|
examples/axum_example,
|
||||||
|
examples/tonic_example,
|
||||||
|
examples/seaography_example,
|
||||||
|
examples/graphql_example,
|
||||||
|
examples/poem_example,
|
||||||
|
]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- if: ${{ contains(matrix.path, 'tonic_example') }}
|
- if: ${{ contains(matrix.path, 'tonic_example') }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user