-
Notifications
You must be signed in to change notification settings - Fork 6
116 lines (114 loc) · 3.65 KB
/
testing.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
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
# https://rhysd.github.io/actionlint/
name: Testing
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*')}}" }
- name: Test Linux Build
run: misc/debianbuild.sh
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-logs
path: test-logs.tar.xz
- name: Ping IRC
if: always()
run: |
S="${{ job.status }}" && URL="${{ github.event.head_commit.url }}"
N="$(git log -1 --format="%cL")" && B="$(git branch --show-current)"
MSG=$(git log -1 --format="%s")
.github/workflows/ircbot.py -q -j "#Anklang" -n AnklangGH -U "$N" -D "$B" -S "$S" "$MSG" "$URL"
linux-arch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*')}}" }
- name: Test Arch Linux Build
run: misc/archbuild.sh
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-logs-arch
path: test-logs.tar.xz
linux-sanitizers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*')}}" }
- name: Test Linux Build with Sanitizers
run: misc/debianbuild.sh --enable-asan --enable-ubsan --enable-debug-cxx
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-logs-sanitizers
path: test-logs.tar.xz
linux-arch-sanitizers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*')}}" }
- name: Test Arch Linux Build with Sanitizers
run: misc/archbuild.sh --enable-asan --enable-ubsan --enable-debug-cxx
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-logs-arch-sanitizers
path: test-logs.tar.xz
linux-static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*', 'static/*')}}" }
- name: Test Static Build
run: misc/staticbuild.sh
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*')}}" }
- name: Test macOS Build
shell: bash
run: misc/macbuild.sh
macos-sanitizers:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*')}}" }
- name: Test macOS Build with Sanitizers
shell: bash
run: misc/macbuild.sh sanitize
macos-13:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*')}}" }
- name: Test macOS 13 build
shell: bash
run: misc/macbuild.sh
macos-13-sanitizers:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
with: { path: "ccache", key: "${{ github.job }}-${{hashFiles ('misc/*')}}" }
- name: Test macOS 13 build with Sanitizers
shell: bash
run: misc/macbuild.sh sanitize
windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test Windows Build
run: misc/winbuild.sh