-
Notifications
You must be signed in to change notification settings - Fork 92
62 lines (46 loc) · 1.14 KB
/
kafka_api_demo_conan_build.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: '[Kafka API] Demo: Conan Build'
on:
pull_request:
push:
branches:
- main
env:
DEMO_PROJ_DIR: demo_projects_for_build/conan_build
jobs:
kafka-api-demo-conan-build:
strategy:
matrix:
os:
- ubuntu-22.04
- macos-12
- windows-latest
runs-on: ${{ matrix.os }}
env:
OS_VERSION: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Prepare
run: |
pip3 install conan==1.64.1
- name: Build (non-windows)
if: ${{!contains(matrix.os, 'windows')}}
run: |
cd ${DEMO_PROJ_DIR}
mkdir -p build
cd build
conan install .. --build=missing
cmake .. -G "Unix Makefiles"
cmake --build .
bin/kafka_producer
bin/kafka_consumer
- name: Build (windows)
if: contains(matrix.os, 'windows')
run: |
cd $Env:DEMO_PROJ_DIR
mkdir -p build
cd build
conan install .. --build=missing
cmake ..
cmake --build .
bin/kafka_producer.exe
bin/kafka_consumer.exe