forked from loafle/openapi-generator-original
* cJSON generate unformatted json to save memory during large objects handling * update sample * add option to use cjson print unforamtted in client * remove unused test template files * add new samples * update workflow * update doc * fix model filename * fix inclulde --------- Co-authored-by: Hemant Zope <42613258+zhemant@users.noreply.github.com> Co-authored-by: Hemant Zope <hemantzope2008@gmail.com>
37 lines
857 B
YAML
37 lines
857 B
YAML
name: Samples c libcurl client
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'samples/client/petstore/c/**'
|
|
- 'samples/client/petstore/c-useJsonUnformatted/**'
|
|
pull_request:
|
|
paths:
|
|
- 'samples/client/petstore/c/**'
|
|
- 'samples/client/petstore/c-useJsonUnformatted/**'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build c libcurl client
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
sample:
|
|
- 'samples/client/petstore/c/'
|
|
- 'samples/client/petstore/c-useJsonUnformatted/'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Prepare
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
|
|
- name: Build
|
|
working-directory: ${{ matrix.sample }}
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make
|