Skip to content

Commit 47f2f5f

Browse files
authored
[C][Client] Add github action to test c client sample build (#15922)
1 parent ea2c686 commit 47f2f5f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Samples c libcurl client
2+
3+
on:
4+
push:
5+
paths:
6+
- 'samples/client/petstore/c/**'
7+
pull_request:
8+
paths:
9+
- 'samples/client/petstore/c/**'
10+
11+
jobs:
12+
build:
13+
name: Build c libcurl client
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Prepare
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
21+
- name: Build
22+
working-directory: "samples/client/petstore/c"
23+
run: |
24+
mkdir build
25+
cd build
26+
cmake ..
27+
make

0 commit comments

Comments
 (0)