Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 0 additions & 210 deletions .github/workflows/CI.yml

This file was deleted.

111 changes: 111 additions & 0 deletions .github/workflows/Clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# 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
env:
CXX: clang++-${{ matrix.version }}
CXXFLAGS: -stdlib=libc++
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
46 changes: 46 additions & 0 deletions .github/workflows/Emscripten.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright © 2022–2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
# Matthias Kretz <[email protected]>

name: Emscripten CI

on:
push:
branches: [ master, main ]
paths:
- '**.h'
- '**.cpp'
- '**.cc'
- '**.sh'
- '**Makefile'
- '**CMakeLists.txt'
- '.github/workflows/Emscripten.yml'
pull_request:

jobs:
emscripten:
strategy:
fail-fast: true
matrix:
version: [ latest ]

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Install emscripten ${{ matrix.version }}
run: |
cd
git clone --depth=1 https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install ${{ matrix.version }}
./emsdk activate ${{ matrix.version }}

- name: Run test suite
shell: bash
env:
CXX: em++
run: |
source ~/emsdk/emsdk_env.sh
make check DRIVEROPTS=-vvf
Loading