-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (71 loc) · 2.04 KB
/
linux_mkspecs.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
name: Linux C++ make-specs
'on':
workflow_dispatch:
inputs:
extra_resolve_options:
description: Extra Resolve Options
required: false
schedule:
- cron: 0 1 * * *
push:
branches:
- master
pull_request:
jobs:
docker_builds:
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
config:
- container: ghcr.io/steinwurf/ubuntu-lts-2404:1.0.0
CXX: g++
name: GCC Latest
cxx_mkspec:
env:
- container: ghcr.io/steinwurf/ubuntu-lts-2404:1.0.0
name: Clang Latest
CXX: clang++
cxx_mkspec:
env:
- container: ghcr.io/steinwurf/ubuntu-lts-2404:1.0.0
name: Clang Address Sanitizer Latest
CXX: clang++
cxx_mkspec: --cxx_mkspec=cxx_clang_address_sanitizer_x64
env:
- container: ghcr.io/steinwurf/ubuntu-lts-2404:1.0.0
name: Clang Thread Sanitizer Latest
CXX: clang++
cxx_mkspec: --cxx_mkspec=cxx_clang_thread_sanitizer_x64
env:
runs-on:
- self-hosted
- docker
- builder
name: ${{ matrix.config.name }}
container:
image: ${{ matrix.config.container }}
options: --user 0:0 --privileged --ulimit core=-1
volumes:
- /home/buildbot/.ssh:/root/.ssh
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Waf Configure
env:
EXTRA_RESOLVE_OPTIONS: ${{ inputs.extra_resolve_options }}
env: CXX=${{ matrix.config.CXX }}
uses: nick-fields/retry@v3
with:
max_attempts: 3
timeout_minutes: 15
command: python3 waf configure --git_protocol=git@ ${{ env.EXTRA_RESOLVE_OPTIONS }} ${{ matrix.config.cxx_mkspec }}
- name: Waf Build
run: |
echo "::add-matcher::.github/gcc-problem-matcher.json"
python3 waf
- name: Waf Test
run: ${{ matrix.config.env }} python3 waf --run_tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true