Skip to content

Commit

Permalink
[INFRA] Add IntelLLVM CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Aug 10, 2023
1 parent 0f6dce3 commit 226dfa0
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 3 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/ci_intel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
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/work/_actions:/home/runner/work/_actions
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 sudo
run: apt-get update && apt-get install --yes sudo

- name: Setup toolchain
uses: seqan/actions/setup-toolchain@main
with:
compiler: gcc-13
install_compiler: false
ccache_size: 75M

- name: Install CMake
uses: seqan/actions/setup-cmake@main
with:
cmake: 3.22.2

- name: Configure tests
env:
CC: icx
CXX: icpx
run: |
icx -v
icpx -v
cat $GITHUB_PATH
ls -lah /tmp
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: |
cd build
make -k -j2
- name: Run tests
run: |
cd build
ctest . -j2 --output-on-failure
15 changes: 12 additions & 3 deletions .github/workflows/ci_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 226dfa0

Please sign in to comment.