forked from loafle/openapi-generator-original
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [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/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' 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>
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Samples Protobuf
|
|
on:
|
|
push:
|
|
paths:
|
|
- .github/workflows/samples-protobuf.yaml
|
|
- samples/config/petstore/protobuf-schema/**
|
|
- samples/config/petstore/protobuf-schema-config/**
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/samples-protobuf.yaml
|
|
- samples/config/petstore/protobuf-schema/**
|
|
- samples/config/petstore/protobuf-schema-config/**
|
|
jobs:
|
|
build:
|
|
name: Build Protobuf Client
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
- 'samples/config/petstore/protobuf-schema/'
|
|
- 'samples/config/petstore/protobuf-schema-config/'
|
|
- 'samples/config/petstore/protobuf-schema-config-complex/'
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Install Protocol Buffers Compiler
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y protobuf-compiler
|
|
- name: Generate Protobuf Schema
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
mkdir out
|
|
protoc --proto_path=. --cpp_out=out models/*.proto services/*.proto
|
|
- name: Verify Generated Files
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
ls -l out/models
|
|
ls -l out/services |