Skip to content

Commit b2ca364

Browse files
committed
ci:oneapi latest
1 parent 99e5e09 commit b2ca364

File tree

3 files changed

+34
-29
lines changed

3 files changed

+34
-29
lines changed

.github/workflows/composite-unix/action.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,10 @@ runs:
44

55
steps:
66

7-
- name: Install Ninja (macOS)
8-
if: runner.os == 'macOS'
7+
- run: cmake --workflow debug
98
shell: bash
10-
run: brew install ninja
119

12-
13-
- name: install ninja (Linux)
14-
shell: bash
15-
if: runner.os == 'Linux'
16-
run: |
17-
sudo apt update
18-
sudo apt install --no-install-recommends ninja-build
19-
20-
- run: cmake --workflow --preset debug
21-
shell: bash
22-
23-
- run: cmake --workflow --preset release
10+
- run: cmake --workflow release
2411
shell: bash
2512

2613
- name: upload CMakeConfigureLog.yaml

.github/workflows/oneapi-linux.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,35 @@ env:
44
CC: icx
55
CXX: icpx
66
FC: ifx
7-
LINUX_CPP_COMPONENTS: intel-oneapi-compiler-dpcpp-cpp
8-
LINUX_FORTRAN_COMPONENTS: intel-oneapi-compiler-fortran
97
# https://github.com/oneapi-src/oneapi-ci/blob/master/.github/workflows/build_all.yml
108
CTEST_NO_TESTS_ACTION: error
11-
CMAKE_BUILD_PARALLEL_LEVEL: 4
12-
CTEST_PARALLEL_LEVEL: 0
139
CMAKE_BUILD_TYPE: Release
10+
CMAKE_GENERATOR: Ninja
11+
# don't need Ninja but it prints the command lines by default which is good for debugging
12+
13+
# debug triggers asan build errors, peculiar to GitHub Actions
1414

1515
on:
1616
push:
1717
paths:
1818
- "**.c"
19-
- "**.cpp"
2019
- "**.h"
20+
- "**.cpp"
2121
- "**.f90"
2222
- "**.F90"
2323
- "**.cmake"
2424
- "**/CMakeLists.txt"
2525
- ".github/workflows/oneapi-linux.yml"
26+
- ".github/workflows/oneapi*.sh"
2627
- "!memcheck.cmake"
28+
- "!coverage.cmake"
29+
- "!example/*"
30+
workflow_dispatch:
31+
32+
# avoid wasted runs
33+
concurrency:
34+
group: ${{ github.workflow }}-${{ github.ref }}
35+
cancel-in-progress: true
2736

2837

2938
jobs:
@@ -32,6 +41,9 @@ jobs:
3241
runs-on: ubuntu-latest
3342
timeout-minutes: 10
3443

44+
strategy:
45+
matrix:
46+
oneapi: [2025.1]
3547
steps:
3648
- uses: actions/checkout@v4
3749

@@ -41,21 +53,28 @@ jobs:
4153
with:
4254
path: |
4355
/opt/intel/oneapi
44-
key: install-apt
56+
key: oneapi-${{ matrix.oneapi }}-apt
4557

4658
- name: non-cache install oneAPI
4759
if: steps.cache-install.outputs.cache-hit != 'true'
4860
timeout-minutes: 5
4961
run: |
5062
.github/workflows/oneapi_setup_apt_repo_linux.sh
51-
sudo apt install ${{ env.LINUX_CPP_COMPONENTS }} ${{ env.LINUX_FORTRAN_COMPONENTS }}
63+
sudo apt install --no-install-recommends intel-oneapi-compiler-dpcpp-cpp-${{ matrix.oneapi }} intel-oneapi-compiler-fortran-${{ matrix.oneapi }}
5264
5365
- name: Setup Intel oneAPI environment
5466
run: |
5567
source /opt/intel/oneapi/setvars.sh
5668
printenv >> $GITHUB_ENV
5769
58-
- run: cmake --workflow --preset default
70+
- run: cmake --workflow default
71+
72+
- name: Upload log failure
73+
if: failure()
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: oneapi-${{ matrix.oneapi }}-${{ runner.os }}-CMakeConfigureLog.yaml
77+
path: build/CMakeFiles/CMakeConfigureLog.yaml
5978

6079
- name: exclude unused files from cache
6180
if: steps.cache-install.outputs.cache-hit != 'true'
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/bin/bash
2+
# This script sets up the Intel oneAPI apt repository on a Linux system.
3+
# https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2025-1/base-apt.html#BASE-APT
24

3-
# SPDX-FileCopyrightText: 2020 Intel Corporation
4-
#
5-
# SPDX-License-Identifier: MIT
5+
curl -sS -L https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
6+
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
67

7-
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
8-
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
9-
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
8+
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
109
sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/oneAPI.list" -o APT::Get::List-Cleanup="0"

0 commit comments

Comments
 (0)