-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (72 loc) · 2.31 KB
/
Copy pathmain.yml
File metadata and controls
82 lines (72 loc) · 2.31 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# To debug a workflow see: https://docs.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run#enabling-debug-logging
name: C++ CI
on:
push:
schedule:
- cron: '0 2 * * SAT'
jobs:
build-unix:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu GCC 10
os: ubuntu-20.04
c-compiler: gcc-10
cxx-compiler: g++-10
- name: Ubuntu GCC 9
os: ubuntu-20.04
c-compiler: gcc-9
cxx-compiler: g++-9
- name: Ubuntu Clang 10
os: ubuntu-20.04
c-compiler: clang-10
cxx-compiler: clang++-10
- name: macOS 12
os: macos-12
# macOS-11 not yet publicly available
# - name: macOS 11
# os: macOS-11
# compiler: # default
# Too big image (sometimes: no space left on runner)
# - name: NVidia HPC 20.11
# os: ubuntu-20.04
# c-compiler: nvc
# cxx-compiler: nvc++
# container: nvcr.io/nvidia/nvhpc:20.11-devel-cuda_multi-ubuntu20.04 # C++17 support
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: true
# Runs a set of commands using the runners shell
- name: configure
run: |
echo "Configure on $(uname -a)"
mkdir build && cd build && CC=${{matrix.c-compiler}} CXX=${{matrix.cxx-compiler}} cmake ..
# Runs a single command using the runners shell
- name: build
run: cmake --build build
- name: test
run: cd build && ctest --output-on-failure
build-windows:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Windows
os: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: configure
run: mkdir build && cd build && cmake ..
- name: build
run: cmake --build build --config Debug
- name: test
run: cd build && ctest -C Debug --output-on-failure