FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
xapi-cpp/.github/workflows/test-xapi-cpp.yml at main · MPogotsky/xapi-cpp · GitHub
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
MPogotsky
/
xapi-cpp
Public archive
Notifications
You must be signed in to change notification settings
Fork
1
Star
3
Code
Issues
3
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
xapi-cpp
/
.github
/
workflows
/
test-xapi-cpp.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
66 lines (53 loc) · 1.78 KB
Breadcrumbs
xapi-cpp
/
.github
/
workflows
/
test-xapi-cpp.yml
Copy path
File metadata and controls
66 lines (53 loc) · 1.78 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
62
63
64
65
66
name
:
Test xapi-cpp
on
:
push
:
branches
:
[ "main", "develop" ]
pull_request
:
branches
:
[ "main" ]
jobs
:
build
:
strategy
:
fail-fast
:
false
matrix
:
os
:
[ubuntu-22.04, ubuntu-24.04]
compiler
:
[g++, clang++]
runs-on
:
${{ matrix.os }}
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Set reusable strings
id
:
strings
shell
:
bash
run
:
|
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
-
name
:
Install dependencies
run
:
|
sudo apt-get update
if [ ${{ matrix.os }} == 'ubuntu-22.04' ]; then
sudo add-apt-repository ppa:mhier/libboost-latest -y
fi
sudo apt install libboost-system1.83-dev
sudo apt install libboost-url1.83-dev
sudo apt install libboost-json1.83-dev
sudo apt install libssl-dev libgtest-dev
-
name
:
Configure CMake
run
:
>
cmake -B ${{ steps.strings.outputs.build-output-dir }} \
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} \
-DCMAKE_BUILD_TYPE=Debug \
-S ${{ github.workspace }}
-
name
:
Build unit tests
run
:
cmake --build ${{ steps.strings.outputs.build-output-dir }}
-
name
:
Run unit tests
run
:
|
cd ${{ steps.strings.outputs.build-output-dir }}
./test/tests
-
name
:
Install Xapi library
run
:
sudo cmake --install ${{ steps.strings.outputs.build-output-dir }}
-
name
:
Compile examples
run
:
|
cd ${{ github.workspace }}/examples
mkdir build
cmake -B ${{ github.workspace }}/examples/build \
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} \
-S ${{ github.workspace }}/examples
cmake --build ${{ github.workspace }}/examples/build
Back
|
FazBrowse Home
|
New Git URL