Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit 5748442

Browse files
authored
Implemented GitHub Actions workflow for builds on Ubuntu, MacOS and Windows (#248)
* Implemented GitHub Actions support Signed-off-by: Leonardo Lima <[email protected]> * Removed Create build directory step Signed-off-by: Leonardo Lima <[email protected]> * Removed make debug tag Signed-off-by: Leonardo Lima <[email protected]> * Implemented cache support Signed-off-by: Leonardo Lima <[email protected]> * Fixed missing tab Signed-off-by: Leonardo Lima <[email protected]> * Implemented GitHub Actions badge to README Signed-off-by: Leonardo Lima <[email protected]>
1 parent 41bf9d4 commit 5748442

File tree

4 files changed

+113
-0
lines changed

4 files changed

+113
-0
lines changed

.github/workflows/macos.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: MacOS
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
CTEST_OUTPUT_ON_FAILURE: 1
13+
14+
jobs:
15+
build:
16+
17+
runs-on: macos-latest
18+
19+
steps:
20+
21+
- name: Set up cache
22+
uses: actions/cache@v2
23+
with:
24+
path: ~\.hunter
25+
key: ${{ runner.os }}-hunter-${{ hashFiles('**/') }}
26+
restore-keys: |
27+
${{ runner.os }}-hunter-
28+
29+
- name: Checkout repository
30+
uses: actions/checkout@v2
31+
32+
- name: Configure
33+
run: cmake -Bbuild
34+
35+
- name: Build
36+
run: cmake --build build -j4

.github/workflows/ubuntu.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Ubuntu
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
CTEST_OUTPUT_ON_FAILURE: 1
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
21+
- name: Set up cache
22+
uses: actions/cache@v2
23+
with:
24+
path: ~\.hunter
25+
key: ${{ runner.os }}-hunter-${{ hashFiles('**/') }}
26+
restore-keys: |
27+
${{ runner.os }}-hunter-
28+
29+
- name: Checkout repository
30+
uses: actions/checkout@v2
31+
32+
- name: Configure
33+
run: cmake -Bbuild
34+
35+
- name: Build
36+
run: cmake --build build -j4

.github/workflows/windows.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
CTEST_OUTPUT_ON_FAILURE: 1
13+
14+
jobs:
15+
build:
16+
17+
runs-on: windows-latest
18+
19+
steps:
20+
21+
- name: Set up cache
22+
uses: actions/cache@v2
23+
with:
24+
path: ~\AppData\Local\hunter
25+
key: ${{ runner.os }}-hunter-${{ hashFiles('**/') }}
26+
restore-keys: |
27+
${{ runner.os }}-hunter-
28+
29+
- name: Checkout repository
30+
uses: actions/checkout@v2
31+
32+
- name: Configure
33+
run: cmake -Bbuild
34+
35+
- name: Build
36+
run: cmake --build build -j4

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
[![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Appveyor Build][appveyor]][appveyor] [![OpenTracing 1.0 Enabled][ot-img]][ot-url]
22

3+
![Ubuntu](https://github.com/jaegertracing/jaeger-client-cpp/workflows/Ubuntu/badge.svg)
4+
![MacOS](https://github.com/jaegertracing/jaeger-client-cpp/workflows/MacOS/badge.svg)
5+
![Windows](https://github.com/jaegertracing/jaeger-client-cpp/workflows/Windows/badge.svg)
6+
7+
38
# jaeger-client-cpp
49
[Jaeger](https://www.jaegertracing.io/) SDK with [OpenTracing API for C++](https://github.com/opentracing/opentracing-cpp) binding.
510

0 commit comments

Comments
 (0)