Skip to content

Commit

Permalink
Add intel oneapi compiler
Browse files Browse the repository at this point in the history
Signed-off-by: Ian <ianpike98@gmail.com>
  • Loading branch information
Rinzii committed Dec 31, 2024
1 parent f51f958 commit 71af141
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: [ninja-gcc, ninja-clang, ninja-clang-libcpp]
cxx_version: [17, 20]
target: [Debug, Release]
compiler: [ ninja-gcc, ninja-clang, ninja-clang-libcpp, ninja-intel ]
cxx_version: [ 17, 20 ]
target: [ Debug, Release ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
Expand All @@ -41,21 +41,31 @@ jobs:
- name: install dependencies
run: sudo apt install -yqq ninja-build

- name: Install compiler
run: |
wget --progress=dot:giga https://registrationcenter-download.intel.com/akdlm/IRC_NAS/ac92f2bb-4818-4e53-a432-f8b34d502f23/intel-dpcpp-cpp-compiler-2025.0.0.740_offline.sh
sudo bash intel-dpcpp-cpp-compiler-2025.0.0.740_offline.sh -s -a -s --action install --eula accept
- name: configure cmake
run: cmake -S . --preset=${{matrix.compiler}} -B build -DCMAKE_CXX_STANDARD=${{matrix.cxx_version}}
run: |
source /opt/intel/oneapi/setvars.sh
cmake -S . --preset=${{matrix.compiler}} -B build -DCMAKE_CXX_STANDARD=${{matrix.cxx_version}}
- name: build
run: cmake --build build --config=${{matrix.target}}
run: |
source /opt/intel/oneapi/setvars.sh
cmake --build build --config=${{matrix.target}}
test:
runs-on: ubuntu-22.04
needs: build
strategy:
fail-fast: false
matrix:
compiler: [ninja-gcc, ninja-clang, ninja-clang-libcpp]
cxx_version: [17, 20]
target: [Debug, Release]
compiler: [ ninja-gcc, ninja-clang, ninja-clang-libcpp ]
cxx_version: [ 17, 20 ]
target: [ Debug, Release ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
Expand All @@ -71,4 +81,6 @@ jobs:
key: ${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-${{ matrix.target }}

- name: test
run: cd build && ctest -C ${{matrix.target}} --output-on-failure
run: |
source /opt/intel/oneapi/setvars.sh
cd build && ctest -C ${{matrix.target}} --output-on-failure

0 comments on commit 71af141

Please sign in to comment.