Skip to content

Includes in libcxx tests #282

Includes in libcxx tests

Includes in libcxx tests #282

Workflow file for this run

name: IntelLLVM
on: [push, pull_request]
jobs:
build-and-test:
strategy:
matrix:
include:
- build_type: 'Release'
flags: '-std=c++11 -Werror -msse2'
- build_type: 'Release'
flags: '-std=c++20 -Werror -msse2 -DTEST_LIBCXX_NEW'
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Ninja
run: sudo apt-get install ninja-build
- name: Install Intel
run: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
- name: Build
env:
CXX: icpx
CXXFLAGS: ${{ matrix.flags }}
run: |
cd test
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build . -v
- name: Test
run: test/build/momo_test