forked from Wind-River/qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
137 lines (125 loc) · 3.76 KB
/
Copy pathci.yml
File metadata and controls
137 lines (125 loc) · 3.76 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
# ci.yml, WR QEMU github CI configuration file.
#
# Copyright (c) 2026 Wind River Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
name: WR QEMU CI
on:
workflow_dispatch:
inputs:
clean_build:
description: 'Clear ccache for a fully clean build'
type: boolean
default: false
push:
branches:
- wr-integration
pull_request:
branches:
- wr-integration
jobs:
build:
runs-on: ubuntu-26.04
steps:
- name: Checkout QEMU source
uses: actions/checkout@v4
with:
repository: Wind-River/qemu
path: qemu
# Use a specific branch or tag if needed
# ref: wr-integration
- name: Cache apt packages
uses: actions/cache@v4
with:
path: ~/apt-cache
key: apt-${{ runner.os }}-${{ hashFiles('qemu/.github/workflows/ci.yml') }}
restore-keys: |
apt-${{ runner.os }}-
- name: Set up dependencies
run: |
sudo mkdir -p ~/apt-cache
sudo apt-get update
sudo apt-get install -y -o Dir::Cache::Archives="$HOME/apt-cache" \
acpica-tools \
autoconf \
automake \
bison \
bzip2 \
build-essential \
ccache \
cmake \
curl \
flex \
git \
lftp \
libaio-dev \
libcapstone-dev \
libelf1 \
libfdt-dev \
libglib2.0-dev \
libgnutls28-dev \
libncurses5-dev \
libpixman-1-dev \
libslirp-dev \
libx11-6 \
libxext6 \
libxpm4 \
libz-dev \
make \
ninja-build \
pylint \
python3 \
python3-pip \
screen \
socat \
swtpm \
texinfo \
unzip \
vsftpd \
wget \
zlib1g-dev
- name: Clear ccache (if requested)
if: ${{ github.event.inputs.clean_build == 'true' }}
run: ccache --clear
- name: Cache ccache
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ runner.os }}-${{ github.sha }}
restore-keys: |
ccache-${{ runner.os }}-
- name: Configure ccache
run: |
ccache --set-config=max_size=1G
ccache --zero-stats
- name: Build QEMU
working-directory: qemu
run: |
export PATH="/usr/lib/ccache:$PATH"
./configure --target-list="aarch64-softmmu,x86_64-softmmu" --enable-fdt --enable-plugins --enable-slirp --enable-capstone --disable-vhost-net --disable-vhost-user --enable-gnutls
make -j$(nproc)
make plugins
make check-build
- name: Print ccache stats
run: ccache --show-stats
- name: Run QEMU tests
working-directory: qemu
run: |
V=1 make check
- name: Upload test logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: meson-test-logs
path: qemu/build/meson-logs/testlog.txt