zlib 1.3.1, 2.21, HDF5 1.14.4.3 #60
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: oneapi-linux | |
env: | |
CC: icx | |
CXX: icpx | |
FC: ifx | |
# https://github.com/oneapi-src/oneapi-ci/blob/master/.github/workflows/build_all.yml | |
CTEST_NO_TESTS_ACTION: error | |
CTEST_PARALLEL_LEVEL: 4 | |
CMAKE_BUILD_PARALLEL_LEVEL: 4 | |
CMAKE_BUILD_TYPE: Release | |
# debug triggers asan build errors, peculiar to GitHub Actions | |
on: | |
push: | |
paths: | |
- "**.c" | |
- "**.cpp" | |
- "**.f90" | |
- "**.F90" | |
- "**.cmake" | |
- "**/CMakeLists.txt" | |
- ".github/workflows/oneapi-linux.yml" | |
- "!memcheck.cmake" | |
- "!coverage.cmake" | |
- "!example/*" | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Python pkgs | |
run: pip install numpy h5py | |
- name: cache install oneAPI | |
id: cache-install | |
uses: actions/cache@v4 | |
with: | |
path: | | |
/opt/intel/oneapi | |
key: install-apt | |
- name: non-cache install oneAPI | |
if: steps.cache-install.outputs.cache-hit != 'true' | |
timeout-minutes: 5 | |
run: | | |
.github/workflows/oneapi_setup_apt_repo_linux.sh | |
sudo apt install intel-oneapi-compiler-dpcpp-cpp intel-oneapi-compiler-fortran | |
- name: Setup Intel oneAPI environment | |
run: | | |
source /opt/intel/oneapi/setvars.sh | |
printenv >> $GITHUB_ENV | |
- name: Configure CMake | |
run: >- | |
cmake --preset default --install-prefix ${{ runner.temp }} | |
- name: print config log | |
if: ${{ failure() }} | |
run: cat build/CMakeFiles/CMakeConfigureLog.yaml | |
- name: Release workflow | |
run: cmake --workflow --preset default | |
- name: install package | |
run: cmake --install build | |
- name: example workflow | |
run: cmake -S example -B example/build -DCMAKE_PREFIX_PATH=${{ runner.temp }} | |
- run: cmake --build example/build | |
- run: ctest --test-dir example/build -V | |
# BUILD_SHARED_LIBS=false since as with any C++ / Fortran program with Intel compiler, | |
# need to have GCC environment carefully set | |
# so that underlying libstdc++ is compatible. | |
- name: exclude unused files from cache | |
if: steps.cache-install.outputs.cache-hit != 'true' | |
run: .github/workflows/oneapi_cache_exclude_linux.sh |