forked from espressopp/espressopp
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.7 KB
/
weekly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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