Skip to content

Commit

Permalink
Refactor googletest experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Roldao authored and Ricardo Roldao committed May 10, 2024
1 parent c2265ee commit abcd8be
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["master"]

jobs:
build:
build_on_ubuntu_22_04:
runs-on: [ubuntu-22.04]

steps:
Expand All @@ -26,15 +26,11 @@ jobs:
repository: COVESA/vsomeip
path: "vsomeip"

- 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: "Checkout googletest"
uses: actions/checkout@v3
with:
repository: google/googletest
path: "googletest"

- name: "Build capicxx-core-runtime"
run: |
Expand All @@ -54,12 +50,12 @@ jobs:

- 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
cmake -S vsomeip -B vsomeip -D GTEST_ROOT=${{ runner.workspace }}\vsomeip\googletest -D BOOST_ROOT=/home/runner/boost/boost/ -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 -S . -B build-someip-runtime -D GTEST_ROOT=${{ runner.workspace }}\vsomeip\googletest -D CMAKE_PREFIX_PATH=install -D CMAKE_INSTALL_PREFIX=install
cmake --build build-someip-runtime
cmake --install build-someip-runtime --strip

0 comments on commit abcd8be

Please sign in to comment.