Connect new libcxx tests #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -DLIBCPP_TEST_DEDUCTION_GUIDES' | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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 |