windows long path: note policy and improve tests #2275
This file contains hidden or 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 | |
| # debug triggers asan build errors in general with oneAPI Linux | |
| on: | |
| push: | |
| paths: | |
| - "**.c" | |
| - "**.h" | |
| - "**.cpp" | |
| - "**.f90" | |
| - "**.F90" | |
| - "**.cmake" | |
| - "**/CMakeLists.txt" | |
| - ".github/workflows/oneapi-linux.yml" | |
| - ".github/workflows/oneapi*.sh" | |
| - "!memcheck.cmake" | |
| - "!coverage.cmake" | |
| - "!example/*" | |
| workflow_dispatch: | |
| # avoid wasted runs | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: cache install oneAPI | |
| id: cache-install | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| /opt/intel/oneapi | |
| key: oneapi-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 --no-install-recommends 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: workflow without std::filesystem | |
| run: cmake --workflow nostdfs | |
| - name: ISO_Fortran_binding.h workflow | |
| run: cmake --workflow isofortran | |
| - name: Release workflow | |
| run: cmake --workflow default --fresh | |
| - name: Upload log failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ env.CXX }}-cpp-${{ matrix.cpp }}-${{ runner.os }}-CMakeConfigureLog.yaml | |
| path: build/CMakeFiles/CMakeConfigureLog.yaml | |
| - name: install package | |
| run: cmake --install build | |
| - name: example workflow | |
| run: cmake --workflow default | |
| working-directory: example | |
| # 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 |