From 47f2f5f3e7dba00529491776bb8653a05ac1c2f9 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Tue, 27 Jun 2023 10:19:25 +0800 Subject: [PATCH] [C][Client] Add github action to test c client sample build (#15922) --- .../workflows/samples-c-libcurl-client.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/samples-c-libcurl-client.yaml diff --git a/.github/workflows/samples-c-libcurl-client.yaml b/.github/workflows/samples-c-libcurl-client.yaml new file mode 100644 index 00000000000..3756cb0b164 --- /dev/null +++ b/.github/workflows/samples-c-libcurl-client.yaml @@ -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