-
-
Notifications
You must be signed in to change notification settings - Fork 154
125 lines (95 loc) · 2.76 KB
/
build-qa-arch-matrix.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
120
121
122
123
124
125
name: Build QA - Arch Matrix
on:
workflow_dispatch:
pull_request:
branches:
- master
paths:
- '**'
- '!.github/**'
- '.github/workflows/build-qa-arch-matrix.yml'
- '!.gitignore'
- '!ChangeLog'
- '!COPYING'
- '!configure.scan'
- '!dev-tools/**'
- 'dev-tools/install-dev-software.sh'
- 'dev-tools/libexec/get-release-*.sh'
- '!doc/**'
- '!etc/**'
- '!install/**'
- '!lib/*/IMPORT.defs'
- '!lib/*/LICENSE'
- '!README.md'
push:
branches:
- master
- force-github-action-run
tags:
- '*'
paths:
- '**'
- '!.github/**'
- '.github/workflows/build-qa-arch-matrix.yml'
- '!.gitignore'
- '!ChangeLog'
- '!COPYING'
- '!configure.scan'
- '!dev-tools/**'
- 'dev-tools/install-dev-software.sh'
- 'dev-tools/libexec/get-release-*.sh'
- '!doc/**'
- '!etc/**'
- '!install/**'
- '!lib/*/IMPORT.defs'
- '!lib/*/LICENSE'
- '!README.md'
jobs:
build-qa-arch-matrix:
### Define the matrix of architectures/platforms to run on
#
strategy:
matrix:
include:
- arch: linux/386
libdir: /lib/i386-linux-gnu
- arch: linux/amd64
libdir: /lib/x86_64-linux-gnu
### Define the environment to run in
#
name: Build on ${{matrix.arch}}
runs-on: ubuntu-20.04
container:
image: debian:bullseye
options: --platform ${{ matrix.arch }}
###
### Steps to run
###
steps:
### Fetch the code
#
# We're using @v1 here to support execution on 32-bit systems
#
- uses: actions/checkout@v1
with:
fetch-depth: 0
# Work around the fix for CVE-2022-24765
# (In this particular instance, git is not installed yet at this point.)
# (The repo "clone" here is that actions/checkout@v1 magic that kinda looks like a git clone.)
# (This command has been moved further down to where git is actually available [more or less accidentally, tbh].)
#- run: git config --global --add safe.directory $GITHUB_WORKSPACE || true
### Make sure we're running on the right platform
#
- run: ls -lad ${{ matrix.libdir }}
### Build
#
- run: ./dev-tools/install-dev-software.sh
# Work around the fix for CVE-2022-24765
# (Should be done higher up, but see higher up for why it is down here.)
- run: git config --global --add safe.directory $GITHUB_WORKSPACE || true
- run: ./bootstrap.sh
- run: ./configure --enable-option-checking=fatal --enable-everything
- run: make -j4
- run: make -j4 check
- run: cat tests/*/test-suite.log
if: failure()