Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

changes in init mtln and in mtln invoking only if .json #56

changes in init mtln and in mtln invoking only if .json

changes in init mtln and in mtln invoking only if .json #56

name: ubuntu-intelLLVM
env:
LINUX_CPP_COMPONENTS: intel-oneapi-compiler-dpcpp-cpp
LINUX_FORTRAN_COMPONENTS: intel-oneapi-compiler-fortran
# https://github.com/oneapi-src/oneapi-ci/blob/master/.github/workflows/build_all.yml
CTEST_NO_TESTS_ACTION: error
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
builds-and-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: cache install oneAPI
id: cache-install
uses: actions/cache@v3
with:
path: |
/opt/intel/oneapi
key: install-apt
- name: non-cache install oneAPI
if: steps.cache-install.outputs.cache-hit != 'true'
timeout-minutes: 10
run: |
sh -c .github/workflows/oneapi_setup_apt_repo_linux.sh
sudo apt install ${{ env.LINUX_CPP_COMPONENTS }} ${{ env.LINUX_FORTRAN_COMPONENTS }}
- name: Setup Intel oneAPI environment
run: |
LATEST_VERSION=$(ls -1 /opt/intel/oneapi/compiler/ | grep -v latest | sort | tail -1)
source /opt/intel/oneapi/compiler/"$LATEST_VERSION"/env/vars.sh
printenv >> $GITHUB_ENV
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: print config log
if: ${{ failure() }}
run: cat build/CMakeFiles/CMakeConfigureLog.yaml
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: CMake build
run: |
export FC=ifx
export CC=icx
export CXX=icpx
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
- name: Run fdtd unit tests
run: |
build/bin/fdtd_tests
- name: Install python wrapper requirements
run: |
python -m pip install -r requirements.txt
- name: Run wrapper tests
run: |
python -m pytest test
- name: exclude unused files from cache
if: steps.cache-install.outputs.cache-hit != 'true'
run: sh -c .github/workflows/oneapi_cache_exclude_linux.sh