-
Notifications
You must be signed in to change notification settings - Fork 6
166 lines (144 loc) · 4.83 KB
/
Copy pathbuild.yml
File metadata and controls
166 lines (144 loc) · 4.83 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: linStat
on: [push, pull_request, workflow_dispatch]
env:
SETUP_PATH: .ci-local:.ci
jobs:
host:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
env:
SET: ${{ matrix.set || 'defaults' }}
CMP: ${{ matrix.compiler || 'gcc' }}
BCFG: ${{ matrix.configuration || 'default' }}
BASE: ${{ matrix.base }}
EXTRA: ${{ matrix.extra }}
strategy:
fail-fast: false
matrix:
include:
- name: ubuntu-latest-7.0-cxx17
base: "7.0"
- name: ubuntu-latest-7.0-static
base: "7.0"
configuration: static
- name: ubuntu-latest-7.0-clang
base: "7.0"
compiler: clang
- name: ubuntu-latest 7.0.5
base: "R7.0.5"
set: "nofortify"
- name: ubuntu-latest 7.0.4
base: "R7.0.4"
set: "nofortify"
steps:
- name: System setup
shell: bash
run: |
sudo apt-get update
sudo apt-get -y install git python3 build-essential libreadline-dev gdb
- uses: actions/checkout@v4
with:
submodules: true
- name: Automatic core dumper analysis
uses: mdavidsaver/ci-core-dumper@master
- name: Prepare and compile dependencies
run: python3 .ci/cue.py prepare
- name: Build main module
run: python3 .ci/cue.py build
- name: Run main module tests
run: python3 .ci/cue.py test
- name: Collect and show test results
if: ${{ always() }}
run: python3 .ci/cue.py test-results
- name: dbior
if: ${{ always() }}
run: cat test/*/drvLinStat.dbior || true
- name: Upload tapfiles Artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: tapfiles ${{ matrix.name }}
path: '**/O.*/*.tap'
if-no-files-found: ignore
docker:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
env:
BASE: ${{ matrix.base }}
CMP: gcc
BCFG: default
EXTRA: ${{ matrix.extra }}
VV: "1"
strategy:
fail-fast: false
matrix:
include:
- name: centos 8
image: centos:8
- name: Debian 11
image: debian:11
base: "7.0"
- name: Debian 12
image: debian:12
base: "7.0"
- name: Fedora latest
image: fedora:latest
base: "7.0"
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Automatic core dumper analysis
uses: mdavidsaver/ci-core-dumper@master
- name: Run...
run: |
env > env.list
cat <<EOF > runit.sh
#!/bin/sh
set -e -x
cd /io
id
ulimit -aH
ulimit -aS
if type apt-get
then
apt-get update
apt-get -y install git python3 build-essential gdb
elif type dnf
then
# handle antique centos
if ! dnf install -y git
then
sed -i 's/mirror\.centos\.org/vault.centos.org/g' /etc/yum.repos.d/CentOS-*.repo
sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/CentOS-*.repo
sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/CentOS-*.repo
fi
dnf install -y git python3 make perl gcc-c++ glibc-devel readline-devel ncurses-devel perl-devel gdb
# fake out cue.py
ln -s /bin/true /usr/bin/apt-get
fi
# quiet warnings spam from perl
export LANG=C
python3 --version
python3 .ci/cue.py prepare
python3 .ci/cue.py build
python3 .ci/cue.py -T 15M test
python3 .ci/cue.py test-results
EOF
chmod +x runit.sh
docker run --rm --quiet \
--pull=always \
--env-file env.list \
-v `pwd`:/io \
${{ matrix.image }} \
/io/runit.sh
- name: dbior
if: ${{ always() }}
run: cat test/*/drvLinStat.dbior || true
- name: Upload tapfiles Artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: tapfiles ${{ matrix.name }}
path: '**/O.*/*.tap'
if-no-files-found: ignore