-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build capicxx-someip-runtime on Windows
- Loading branch information
Ricardo Roldao
authored and
Ricardo Roldao
committed
May 14, 2024
1 parent
c2265ee
commit ddc7e03
Showing
3 changed files
with
65 additions
and
16 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
branches: ["master"] | ||
|
||
jobs: | ||
build: | ||
build_on_ubuntu_22_04: | ||
runs-on: [ubuntu-22.04] | ||
|
||
steps: | ||
|
@@ -26,20 +26,10 @@ jobs: | |
repository: COVESA/vsomeip | ||
path: "vsomeip" | ||
|
||
- name: "Install googletest" | ||
- name: Install 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 | ||
sudo apt-get update -qq | ||
sudo apt-get install -y googletest | ||
- name: Ubuntu - Install boost 1.83.0 with gcc and x86 | ||
uses: MarkusJx/[email protected] | ||
|
@@ -52,6 +42,11 @@ jobs: | |
arch: x86 | ||
cache: true | ||
|
||
- 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 BOOST_ROOT=/home/runner/boost/boost/ -D CMAKE_PREFIX_PATH=install -D CMAKE_INSTALL_PREFIX=install | ||
|
@@ -62,4 +57,54 @@ jobs: | |
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 | ||
build_on_windows_latest: | ||
runs-on: windows-latest | ||
|
||
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: "Checkout googletest" | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: google/googletest | ||
path: "googletest" | ||
|
||
- name: Windows - Install boost 1.83.0 with gcc and x86 | ||
uses: MarkusJx/[email protected] | ||
id: windows-gcc-1_83-x86 | ||
with: | ||
boost_version: 1.83.0 | ||
platform: windows | ||
boost_install_dir: C:\runner | ||
toolset: msvc | ||
arch: x86 | ||
cache: true | ||
|
||
- name: "Build capicxx-core-runtime" | ||
run: | | ||
cmake -S capicxx-core-runtime -B build-core-runtime -D BOOST_ROOT=C:\runner\boost -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}\install | ||
cmake --build build-core-runtime --target install | ||
- name: "Build vsomeip" | ||
run: | | ||
cmake -S vsomeip -B build-vsomeip -D GTEST_ROOT=${{ runner.workspace }}\capicxx-someip-runtime\googletest -D BOOST_ROOT=C:\runner\boost -D CMAKE_INSTALL_PREFIX=${{ runner.workspace }}\install | ||
cmake --build build-vsomeip --target install | ||
- name: "Build capicxx-someip-runtime" | ||
run: | | ||
cmake -B build-someip-runtime -D GTEST_ROOT=${{ runner.workspace }}\capicxx-someip-runtime\googletest -D BOOST_ROOT=C:\runner\boost -D CMAKE_PREFIX_PATH=${{ runner.workspace }}\install . | ||
cmake --build build-someip-runtime |
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
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