Skip to content

Commit

Permalink
clang updates for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Jan 5, 2023
1 parent 03bbff6 commit f0f23eb
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ on:
branches: [ master ]

jobs:
build-clang-14-linux-stl:
name: Clang-14 Linux - STL
build-clang-linux-stl:
name: Clang Linux - STL
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-22.04]

steps:
- uses: actions/checkout@v2

- name: Build
run: |
sudo apt-get update
sudo apt-get install -y "clang-14" "lldb-14" "lld-14" "clang-format-14"
export CC=clang-14
export CXX=clang++-14
sudo apt-get install -y "clang" "lldb" "lld" "clang-format"
export CC=clang
export CXX=clang++
export ASAN_OPTIONS=alloc_dealloc_mismatch=0,detect_leaks=0
git fetch --tags
cmake -D BUILD_TESTS=ON -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=OFF ./
Expand All @@ -31,49 +31,47 @@ jobs:
- name: Run tests
run: ./test/etl_tests

build-clang-14-linux-no-stl:
name: Clang-14 Linux - No STL
build-clang-linux-no-stl:
name: Clang Linux - No STL
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-22.04]

steps:
- uses: actions/checkout@v2

- name: Build
run: |
sudo apt-get update
sudo apt-get install -y "clang-14" "lldb-14" "lld-14" "clang-format-14"
export CC=clang-14
export CXX=clang++-14
sudo apt-get install -y "clang" "lldb" "lld" "clang-format"
export CC=clang
export CXX=clang++
export ASAN_OPTIONS=alloc_dealloc_mismatch=0,detect_leaks=0
git fetch --tags
cmake -DBUILD_TESTS=ON -DNO_STL=ON -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=OFF ./
gcc --version
cmake -D BUILD_TESTS=ON -DNO_STL=ON -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=OFF ./
clang --version
make
- name: Run tests
run: ./test/etl_tests

build-clang-14-linux-stl-force-cpp03:
name: Clang-14 Linux - STL - Force C++03
build-clang-linux-stl-force-cpp03:
name: Clang Linux - STL - Force C++03
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-22.04]

steps:
- uses: actions/checkout@v2

- name: Build
run: |
sudo apt-get update
sudo apt-get install -y "clang-14" "lldb-14" "lld-14" "clang-format-14"
export CC=clang-14
export CXX=clang++-14
sudo apt-get install -y "clang" "lldb" "lld" "clang-format"
export CC=clang
export CXX=clang++
export ASAN_OPTIONS=alloc_dealloc_mismatch=0,detect_leaks=0
git fetch --tags
cmake -D BUILD_TESTS=ON -DNO_STL=OFF -DETL_USE_TYPE_TRAITS_BUILTINS=OFF -DETL_USER_DEFINED_TYPE_TRAITS=OFF -DETL_FORCE_TEST_CPP03=ON ./
Expand Down

0 comments on commit f0f23eb

Please sign in to comment.