-
Notifications
You must be signed in to change notification settings - Fork 200
111 lines (109 loc) · 4.5 KB
/
test-on-linux.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
name: Test on Linux
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the tests with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
schedule:
# Run at 8:13 on the 1st day of each month
- cron: '13 8 1 * *'
jobs:
Ubuntu-22-10:
runs-on: ubuntu-latest
container: polettimarco/fruit-basesystem:ubuntu-22.10
env:
N_JOBS: 2
ASAN_OPTIONS: ""
OS: "linux"
COMPILER: ${{ matrix.config.compiler }}
STLARG: ${{ matrix.config.stlarg }}
steps:
- uses: actions/checkout@v3
- name: test
run: extras/scripts/postsubmit-helper.sh ${{ matrix.config.test }}
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }}
strategy:
fail-fast: false
matrix:
config:
- {compiler: clang-15.0, stlarg: -stdlib=libstdc++, test: ReleasePlain}
- {compiler: clang-15.0, stlarg: -stdlib=libstdc++, test: DebugPlain}
- {compiler: clang-15.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan}
- {compiler: gcc-12, test: ReleasePlain}
- {compiler: gcc-12, test: DebugPlain}
- {compiler: gcc-12, test: DebugAsanUbsan}
- {compiler: clang-11.0, stlarg: -stdlib=libstdc++, test: ReleasePlain}
- {compiler: clang-11.0, stlarg: -stdlib=libstdc++, test: DebugPlain}
# clang-11 has issues in the DebugAsanUbsan configuration
- {compiler: clang-13.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan}
- {compiler: gcc-9, test: ReleasePlain}
- {compiler: gcc-9, test: DebugAsanUbsan}
Ubuntu-22-04:
runs-on: ubuntu-latest
container: polettimarco/fruit-basesystem:ubuntu-22.04
env:
N_JOBS: 2
ASAN_OPTIONS: ""
OS: "linux"
COMPILER: ${{ matrix.config.compiler }}
STLARG: ${{ matrix.config.stlarg }}
steps:
- uses: actions/checkout@v3
- name: test
run: extras/scripts/postsubmit-helper.sh ${{ matrix.config.test }}
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }}
strategy:
fail-fast: false
matrix:
config:
- {compiler: clang-15.0, stlarg: -stdlib=libstdc++, test: ReleasePlain}
- {compiler: clang-15.0, stlarg: -stdlib=libstdc++, test: DebugPlain}
- {compiler: clang-15.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan}
- {compiler: gcc-12, test: ReleasePlain}
- {compiler: gcc-12, test: DebugAsanUbsan}
- {compiler: clang-11.0, stlarg: -stdlib=libstdc++, test: ReleasePlain}
- {compiler: clang-11.0, stlarg: -stdlib=libstdc++, test: DebugPlain}
# clang-11 has issues in the DebugAsanUbsan configuration
- {compiler: clang-13.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan}
- {compiler: gcc-9, test: ReleasePlain}
- {compiler: gcc-9, test: DebugAsanUbsan}
Ubuntu-20-04:
runs-on: ubuntu-latest
container: polettimarco/fruit-basesystem:ubuntu-20.04
env:
N_JOBS: 2
ASAN_OPTIONS: ""
OS: "linux"
COMPILER: ${{ matrix.config.compiler }}
STLARG: ${{ matrix.config.stlarg }}
steps:
- uses: actions/checkout@v3
- name: test
run: extras/scripts/postsubmit-helper.sh ${{ matrix.config.test }}
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }}
strategy:
fail-fast: false
matrix:
config:
- {compiler: clang-10.0, stlarg: -stdlib=libstdc++, test: ReleasePlain}
- {compiler: clang-10.0, stlarg: -stdlib=libstdc++, test: DebugPlain}
- {compiler: clang-10.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan}
- {compiler: gcc-10, test: ReleasePlain}
- {compiler: gcc-10, test: DebugAsanUbsan}
- {compiler: clang-6.0, stlarg: -stdlib=libstdc++, test: ReleasePlain}
- {compiler: clang-6.0, stlarg: -stdlib=libstdc++, test: DebugPlain}
- {compiler: clang-6.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan}
- {compiler: gcc-7, test: ReleasePlain}
- {compiler: gcc-7, test: DebugAsanUbsan}