aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonçalo Almeida <goncalo_almeida_635@hotmail.com>2023-11-29 15:13:07 +0000
committerGitHub <noreply@github.com>2023-11-29 15:13:07 +0000
commit55376c17101b5f93b9c4634b843b0c2c26e3e413 (patch)
tree4b8b78a9f4b95de1ffd64902f9b566ebe758c85a
parent02c199dff8aba814beebe3ca417fd991058fe90c (diff)
downloadvsomeip-55376c17101b5f93b9c4634b843b0c2c26e3e413.tar.gz
Updated CI to include windows builds (#583)
-rw-r--r--.github/workflows/c-cpp.yml70
1 files changed, 50 insertions, 20 deletions
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index 90e61ebb..0a23bdb4 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -7,25 +7,55 @@ on:
branches: [ master ]
jobs:
- build:
- runs-on: [ubuntu-22.04]
-
+ build_on_ubuntu_boost_183_gcc_x86:
+ runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: install dependencies
- run: |
- sudo apt-get update -qq
- sudo apt-get install -y libboost-system-dev libboost-thread-dev libboost-log-dev googletest asciidoc source-highlight doxygen graphviz
- - name: Run CMake+Ninja without triplet
- uses: lukka/run-cmake@v2
- with:
- cmakeGenerator: 'Ninja'
- cmakeListsOrSettingsJson: 'CMakeListsTxtAdvanced'
- cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
- cmakeAppendedArgs: '-DGTEST_ROOT=/usr/src/googletest/googletest/ -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/install'
- buildWithCMakeArgs: '-t all build_tests doc install'
- buildDirectory: '${{ runner.workspace }}/build'
- - uses: actions/upload-artifact@v2
+ - name: Ubuntu - Install boost 1.83.0 with gcc and x86
+ uses: MarkusJx/install-boost@v2.4.4
+ 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
+
+ - uses: actions/checkout@v3
+
+ - name: install dependencies
+ run: |
+ sudo apt-get update -qq
+ sudo apt-get install -y googletest asciidoc source-highlight doxygen graphviz
+
+ - name: Run CMake
+ run: |
+ cmake -Bbuild \
+ -DBOOST_ROOT=/home/runner/boost/boost/ -DGTEST_ROOT=/usr/src/googletest/googletest/ -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/install .
+ cmake --build build -t all build_tests doc install
+
+ - uses: actions/upload-artifact@v2
+ with:
+ name: vsomeip
+ path: '${{ runner.workspace }}/install/**/*'
+
+ build_on_windows_boost_183_gcc_x86:
+ runs-on: windows-latest
+ steps:
+ - name: Windows - Install boost 1.83.0 with gcc and x86
+ uses: MarkusJx/install-boost@v2.4.4
+ id: windows-gcc-1_83-x86
with:
- name: vsomeip
- path: '${{ runner.workspace }}/install/**/*'
+ boost_version: 1.83.0
+ platform: windows
+ boost_install_dir: C:\runner
+ toolset: msvc
+ arch: x86
+ cache: true
+
+ - uses: actions/checkout@v3
+
+ - name: Run CMake
+ run: |
+ cmake -Bbuild -D BOOST_ROOT=C:\runner\boost/boost\ .
+ cmake --build build