-
Notifications
You must be signed in to change notification settings - Fork 6
119 lines (110 loc) · 3.36 KB
/
build-and-test.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
linux:
# The jobs should run pretty quick; anything over 30m essentially means
# someting is stuck somewhere
timeout-minutes: 30
runs-on: ubuntu-latest
container: ${{ matrix.container }}
env:
GH_YML_JOBNAME: ${{ matrix.os }}-${{ matrix.compiler }}
GH_YML_BUILDTYPE: ${{ matrix.buildtype }}
GH_YML_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
strategy:
fail-fast: false
matrix:
buildtype: [ release, debug ]
os: [ centos7, alma8, ubuntu1604, ubuntu1804, ubuntu2004 ]
compiler: [ clang, gcc, nvhpc ]
exclude:
- { os: alma8, compiler: nvhpc }
- { os: ubuntu1604, compiler: nvhpc }
- { os: ubuntu1804, compiler: nvhpc }
include:
- os: centos7
container: centos:7
- os: alma8
container: almalinux:8
- os: ubuntu1604
container: ubuntu:16.04
- os: ubuntu1804
container: ubuntu:18.04
- os: ubuntu2004
container: ubuntu:20.04
- os: centos7
compiler: nvhpc
container: nvcr.io/nvidia/nvhpc:21.2-devel-cuda11.2-centos7
- os: ubuntu2004
compiler: nvhpc
container: nvcr.io/nvidia/nvhpc:21.2-devel-cuda11.2-ubuntu20.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: source
- name: Setup
run: source/scripts/ci/setup/linux.sh
- name: Update
run: source/scripts/ci/gh-actions/run.sh update
- name: Configure
run: source/scripts/ci/gh-actions/run.sh configure
- name: Build
run: source/scripts/ci/gh-actions/run.sh build
- name: Test
run: source/scripts/ci/gh-actions/run.sh test
mac_and_windows:
# The jobs should run pretty quick; anything over 30m essentially means
# someting is stuck somewhere
timeout-minutes: 30
runs-on: ${{ matrix.vm }}
env:
GH_YML_JOBNAME: ${{ matrix.jobname }}
GH_YML_BUILDTYPE: ${{ matrix.buildtype }}
GH_YML_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
strategy:
fail-fast: false
matrix:
buildtype: [ release, debug ]
jobname: [
windows2019-vs2019-clang,
windows2022-vs2022-msvc,
macos-clang ]
include:
- jobname: windows2019-vs2019-clang
vm: windows-2019
- jobname: windows2022-vs2022-msvc
vm: windows-2022
- jobname: macos-clang
vm: macos-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: source
- name: Setup
if: ${{ runner.os == 'Windows' }}
run: source/scripts/ci/setup/windows.sh
- name: Setup
if: ${{ runner.os == 'macOS' }}
run: source/scripts/ci/setup/macos.sh
- name: Update
run: source/scripts/ci/gh-actions/run.sh update
- name: Configure
run: source/scripts/ci/gh-actions/run.sh configure
- name: Build
run: source/scripts/ci/gh-actions/run.sh build
- name: Test
run: source/scripts/ci/gh-actions/run.sh test