Skip to content

Commit

Permalink
Set up pipeline for different compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Iandiehard committed Sep 25, 2023
1 parent 1dc6cad commit 09844a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apt-get update -qq

# install compilers
apt-get install clang-9
apt-get install clang-14

# install Boost
BOOST_MAJOR_VERSION="1"
Expand All @@ -22,7 +22,7 @@ DLT_MAJOR_VERSION="2"
DLT_MINOR_VERSION="18"
DLT_PATCH_VERSION="8"
wget "https://github.com/COVESA/dlt-daemon/archive/refs/tags/v${DLT_MAJOR_VERSION}.${DLT_MINOR_VERSION}.${DLT_PATCH_VERSION}.tar.gz"
mkdir dlt-daemon
mkdir dlt-daemon
tar -xvf v${DLT_MAJOR_VERSION}.${DLT_MINOR_VERSION}.${DLT_PATCH_VERSION}.tar.gz -C dlt-daemon
mkdir -p dlt-daemon/dlt-daemon-${DLT_MAJOR_VERSION}.${DLT_MINOR_VERSION}.${DLT_PATCH_VERSION}/build
cd dlt-daemon/dlt-daemon-${DLT_MAJOR_VERSION}.${DLT_MINOR_VERSION}.${DLT_PATCH_VERSION} || exit
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,14 @@ env:
BUILD_TYPE: Debug

jobs:
Setup:
Build-Clang-14:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo sh .github/setup.sh

Build-Clang-9:
needs: Setup
runs-on: ubuntu-latest
steps:
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=toolchains/linux_clang_9.cmake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=toolchains/linux_clang_14.cmake

- name: Build
# Build your program with the given configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86_64)

set(CMAKE_CXX_COMPILER clang++-9)
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
set(CMAKE_CXX_FLAGS "-Wall -Werror -Wextra -Wpedantic -Wconversion -Wcast-align -Wunused -Wshadow -Wold-style-cast -Wpointer-arith -Wcast-qual -Wno-missing-braces" CACHE INTERNAL "")

0 comments on commit 09844a5

Please sign in to comment.