forked from loafle/openapi-generator-original
[C][Client] Add github action to test c client sample build (#15922)
This commit is contained in:
parent
ea2c6860d3
commit
47f2f5f3e7
27
.github/workflows/samples-c-libcurl-client.yaml
vendored
Normal file
27
.github/workflows/samples-c-libcurl-client.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Samples c libcurl client
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'samples/client/petstore/c/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'samples/client/petstore/c/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build c libcurl client
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Prepare
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
|
||||
- name: Build
|
||||
working-directory: "samples/client/petstore/c"
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
make
|
Loading…
x
Reference in New Issue
Block a user