Skip to content

Restore C++17 support which does not support __VA_OPT__ #2

Restore C++17 support which does not support __VA_OPT__

Restore C++17 support which does not support __VA_OPT__ #2

Workflow file for this run

# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright © 2022–2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
# Matthias Kretz <[email protected]>
name: Clang CI
on:
push:
branches: [ master, main ]
paths:
- '**.h'
- '**.cpp'
- '**.cc'
- '**.sh'
- '**Makefile'
- '**CMakeLists.txt'
- '.github/workflows/Clang.yml'
pull_request:
jobs:
clang:
strategy:
fail-fast: false
matrix:
version: [13, 16, 17]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
path: vir-simd
- name: Cache test data
id: cache-testdata
uses: actions/cache@v4
with:
path: vc-testdata
key: testdata-1
enableCrossOsArchive: true
- name: Download test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: VcDevel/vc-testdata
path: vc-testdata
- name: Install Clang ${{ matrix.version }}
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${{ matrix.version }} main'
#sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y clang-${{ matrix.version }}
#sudo apt-get install -y g++-13 clang-${{ matrix.version }}
#sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 110 --slave /usr/bin/g++ g++ /usr/bin/g++-13
- name: Run test suite
env:
CXX: clang++-${{ matrix.version }}
run: cd vir-simd && make check DRIVEROPTS=-vvf
clang-libcxx:
strategy:
fail-fast: false
matrix:
version: [15, 17]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
path: vir-simd
- name: Cache test data
id: cache-testdata
uses: actions/cache@v4
with:
path: vc-testdata
key: testdata-1
enableCrossOsArchive: true
- name: Download test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: VcDevel/vc-testdata
path: vc-testdata
- name: Install Clang ${{ matrix.version }}
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${{ matrix.version }} main'
sudo apt-get update
sudo apt-get install -y clang-${{ matrix.version }} libc++-${{ matrix.version }}-dev libc++abi-${{ matrix.version }}-dev
- name: CMake test
run: |
cmake -S vir-simd -B cmake-build -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build cmake-build --target check
- name: Run test suite
env:
CXX: clang++-${{ matrix.version }}
CXXFLAGS: -stdlib=libc++
run: cd vir-simd && make check DRIVEROPTS=-vvf