From 31dc7127538c933fb967f825948565281b5d31a4 Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 10 Aug 2023 15:11:34 +0200 Subject: [PATCH] [INFRA] Add IntelLLVM CI --- .github/workflows/ci_intel.yml | 75 ++++++++++++++++++++++++++++++++++ .github/workflows/ci_lint.yml | 15 +++++-- 2 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci_intel.yml diff --git a/.github/workflows/ci_intel.yml b/.github/workflows/ci_intel.yml new file mode 100644 index 00000000..3a5624e1 --- /dev/null +++ b/.github/workflows/ci_intel.yml @@ -0,0 +1,75 @@ +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 + 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: Setup toolchain + uses: seqan/actions/setup-toolchain@main + with: + compiler: gcc-13 + install_compiler: false + ccache_size: 75M + + - name: Install compiler + run: | + sudo apt install --yes intel-oneapi-dpcpp-cpp-2023.2.1 + echo "CC=icx" >> "$GITHUB_ENV" + echo "CXX=icpx" >> "$GITHUB_ENV" + + - name: Install CMake + uses: seqan/actions/setup-cmake@main + with: + cmake: 3.16.9 + + - name: Configure tests + run: | + set +xu; source /opt/intel/oneapi/setvars.sh; set -xu + 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: | + ccache -z + cd build + make -k -j2 + ccache -sv + + - name: Run tests + run: | + cd build + ctest . -j2 --output-on-failure + diff --git a/.github/workflows/ci_lint.yml b/.github/workflows/ci_lint.yml index 0befbe73..8d0e26b9 100644 --- a/.github/workflows/ci_lint.yml +++ b/.github/workflows/ci_lint.yml @@ -55,14 +55,23 @@ jobs: cancel-in-progress: true runs-on: ubuntu-22.04 steps: - - name: "Cancel Coverage" - run: echo "Cancelling Coverage" + - name: "Cancel Documentation" + run: echo "Cancelling Documentation" + cancel_intel: + name: Cancel running Workflows + concurrency: + group: intel-${{ github.event.pull_request.number }} + cancel-in-progress: true + runs-on: ubuntu-22.04 + steps: + - name: "Cancel Intel" + run: echo "Cancelling Intel" lint: name: Lint concurrency: group: lint-${{ github.event.pull_request.number }} cancel-in-progress: true - needs: [cancel_linux, cancel_macos, cancel_misc, cancel_coverage, cancel_documentation] + needs: [cancel_linux, cancel_macos, cancel_misc, cancel_coverage, cancel_documentation, cancel_intel] runs-on: ubuntu-22.04 timeout-minutes: 15 steps: