forked from loafle/openapi-generator-original
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
891 B
YAML
35 lines
891 B
YAML
name: Samples Rust
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "samples/client/others/rust/**"
|
|
- "samples/server/petstore/rust-server/**"
|
|
- "samples/client/petstore/rust-server/**"
|
|
pull_request:
|
|
paths:
|
|
- "samples/client/others/rust/**"
|
|
- "samples/client/petstore/rust/**"
|
|
- "samples/server/petstore/rust-server/**"
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Rust
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
# these folders contain sub-projects of rust clients, servers
|
|
- samples/client/others/rust/
|
|
- samples/client/petstore/rust/
|
|
- samples/server/petstore/rust-server/
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: Build
|
|
working-directory: ${{ matrix.sample }}
|
|
run: cargo build
|