-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.37 KB
/
Copy pathtesting.yml
File metadata and controls
41 lines (39 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Testing
on:
push:
branches: [develop, main, "codex/**"]
pull_request:
branches: [develop, main]
jobs:
cpp:
runs-on: ubuntu-latest
env:
CMAKE_BUILD_PARALLEL_LEVEL: "4"
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install --yes libc-ares-dev libre2-dev libssl-dev ninja-build pkg-config zlib1g-dev
- name: Cache gRPC C++ toolchain
uses: actions/cache@v5
with:
path: build/cpp-deps
key: grpc-cpp-1.64.3-protobuf-26.1-${{ runner.os }}-${{ runner.arch }}-v1
- name: Install C++ dependencies
run: bash specification/source/cpp/pole-specification/scripts/install_grpc.sh build/cpp-deps
- name: Build and test
run: |
cmake -S . -B build/sdk -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$PWD/build/cpp-deps"
cmake --build build/sdk
ctest --test-dir build/sdk --output-on-failure
cmake --install build/sdk --prefix build/install
cmake -S tests/consumer -B build/consumer -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$PWD/build/install;$PWD/build/cpp-deps"
cmake --build build/consumer