[INFRA] Add IntelLLVM CI #5
Workflow file for this run
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: Intel | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
types: | |
- unlabeled | |
workflow_dispatch: | |
concurrency: | |
group: intel-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: ${{ github.event_name != 'push' }} | |
env: | |
TZ: Europe/Berlin | |
defaults: | |
run: | |
shell: bash -Eexuo pipefail {0} | |
jobs: | |
build: | |
name: IntelLLVM | |
runs-on: ubuntu-22.04 | |
# container: | |
# image: intel/oneapi-basekit | |
# volumes: | |
# - /home/runner:/home/runner | |
timeout-minutes: 120 | |
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
submodules: true | |
- name: Install Compiler | |
run: | | |
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null | |
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list | |
sudo apt update | |
sudo apt install --yes intel-oneapi-dpcpp-cpp-2023.2.1 | |
# - name: Setup toolchain | |
# uses: seqan/actions/setup-toolchain@main | |
# with: | |
# compiler: gcc-13 | |
# install_compiler: false | |
# ccache_size: 75M | |
- name: CMake version | |
run: cmake --version || true | |
- name: Install CMake | |
uses: seqan/actions/setup-cmake@main | |
with: | |
cmake: 3.16.9 | |
- name: CMake version | |
run: cmake --version || true | |
- name: Configure tests | |
env: | |
CC: icx | |
CXX: icpx | |
run: | | |
source /opt/intel/oneapi/setvars.sh | |
mkdir build | |
cd build | |
cmake ../test/unit -DCMAKE_BUILD_TYPE=Release \ | |
-DHIBF_NATIVE_BUILD=OFF \ | |
-DHIBF_VERBOSE_TESTS=OFF | |
make -j2 gtest_build | |
- name: Build tests | |
run: | | |
source /opt/intel/oneapi/setvars.sh | |
cd build | |
make -k -j2 | |
- name: Run tests | |
run: | | |
cd build | |
ctest . -j2 --output-on-failure | |