Skip to content

WEEKLY

WEEKLY #15

Workflow file for this run

name: WEEKLY
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * SAT'
jobs:
build:
strategy:
matrix:
BUILD_TYPE: [Release, Debug]
DISTRO: ['fedora', 'fedora_rawhide', 'fedora_mpich', 'opensuse', 'ubuntu', 'ubuntu_rolling']
CMAKE_COMPILER: [
'-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++',
'-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++'
]
include:
- BUILD_TYPE: 'Debug'
DISTRO: 'fedora_intel'
CMAKE_COMPILER: '-DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc'
- BUILD_TYPE: 'Debug'
DISTRO: 'fedora_intel'
CMAKE_COMPILER: '-DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx'
runs-on: ubuntu-latest
container:
image: espressopp/buildenv:${{ matrix.distro }}
options: --security-opt seccomp=unconfined
steps:
- uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{ matrix.DISTRO }}-${{ matrix.CMAKE_COMPILER }}-${{ matrix.BUILD_TYPE }}-${{ github.run_id }}
restore-keys: ${{ matrix.DISTRO }}-${{ matrix.CMAKE_COMPILER }}-${{ matrix.BUILD_TYPE }}
- uses: actions/checkout@v3
- name: Install Python Dependencies
run: pip3 install -r requirements.txt
- name: Configure
run: cmake -S . -B build -DCMAKE_INSTALL_PREFIX=$HOME/espressopp -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} ${{ matrix.CMAKE_COMPILER }} -DESPP_WERROR=ON
- name: Build
run: cmake --build build --verbose --target all -j 2
- name: Install
run: cmake --install build
- name: Test
working-directory: build
run: ctest --rerun-failed --output-on-failure -j 2