Skip to content

Build capicxx-someip-runtime on Windows #5

Build capicxx-someip-runtime on Windows

Build capicxx-someip-runtime on Windows #5

Workflow file for this run

name: C/C++ CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build_on_ubuntu_22_04:
runs-on: [ubuntu-22.04]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Checkout capicxx-core-runtime"
uses: actions/checkout@v4
with:
repository: COVESA/capicxx-core-runtime
path: "capicxx-core-runtime"
- name: "Checkout vsomeip"
uses: actions/checkout@v4
with:
repository: COVESA/vsomeip
path: "vsomeip"
- name: "Checkout googletest"
uses: actions/checkout@v4
with:
repository: google/googletest
ref: v1.14.0
path: "googletest"
- name: Ubuntu - Install boost 1.83.0 with gcc and x86
uses: MarkusJx/[email protected]
id: ubuntu-gcc-1_83-x86
with:
boost_version: 1.83.0
platform_version: 20.04
boost_install_dir: /home/runner
toolset: gcc
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=${{ runner.workspace }}/capicxx-someip-runtime/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 --build build-someip-runtime
build_on_windows_latest:
runs-on: windows-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Checkout capicxx-core-runtime"
uses: actions/checkout@v4
with:
repository: COVESA/capicxx-core-runtime
path: "capicxx-core-runtime"
- name: "Checkout vsomeip"
uses: actions/checkout@v4
with:
repository: COVESA/vsomeip
path: "vsomeip"
- name: "Checkout googletest"
uses: actions/checkout@v4
with:
repository: google/googletest
ref: v1.14.0
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