forked from COVESA/capicxx-someip-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added github workflow to build in Ubuntu
- Loading branch information
Ricardo Roldao
authored and
Ricardo Roldao
committed
May 7, 2024
1 parent
d346e0f
commit 0b2ec4c
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: C/C++ CI | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
build: | ||
runs-on: [ubuntu-22.04] | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Checkout capicxx-core-runtime" | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: COVESA/capicxx-core-runtime | ||
path: "capicxx-core-runtime" | ||
|
||
- name: "Checkout vsomeip" | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: COVESA/vsomeip | ||
path: "vsomeip" | ||
|
||
- name: "Install dbus and googletest" | ||
run: | | ||
sudo apt-get install libgtest-dev | ||
cd /usr/src/gtest | ||
sudo cmake CMakeLists.txt | ||
sudo make | ||
sudo cp lib/*.a /usr/lib | ||
sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a | ||
sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a | ||
- name: "Build capicxx-core-runtime" | ||
run: | | ||
cmake -S capicxx-core-runtime -B build-core-runtime -D CMAKE_INSTALL_PREFIX=install | ||
cmake --build build-core-runtime --target install | ||
- name: "Build vsomeip" | ||
run: | | ||
cmake -S vsomeip -B vsomeip -D GTEST_ROOT=/usr/src/googletest -D CMAKE_PREFIX_PATH=install -D CMAKE_INSTALL_PREFIX=install | ||
cmake --build vsomeip | ||
cmake --install vsomeip --strip | ||
- name: "Build capicxx-someip-runtime" | ||
run: | | ||
cmake -S . -B build-someip-runtime -D GTEST_ROOT=/usr/src/googletest -D CMAKE_PREFIX_PATH=install -D CMAKE_INSTALL_PREFIX=install | ||
cmake --build build-someip-runtime | ||
cmake --install build-someip-runtime --strip |