From b401851511c2122b2a26e377826d3fed48dfebfb Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Thu, 14 Dec 2023 19:56:31 +0800 Subject: [PATCH] CI: whitelist examples runs --- .github/workflows/rust.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7be8cd0f..280b3701 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -226,24 +226,26 @@ jobs: - uses: dtolnay/rust-toolchain@stable - 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: name: Examples runs-on: ubuntu-latest - needs: examples-matrix strategy: fail-fast: false 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: - uses: actions/checkout@v3 - if: ${{ contains(matrix.path, 'tonic_example') }}