Skip to content

Commit

Permalink
add github workflow to build and test wr-integration
Browse files Browse the repository at this point in the history
Signed-off-by: Nelson Ho <Nelson.Ho@windriver.com>
  • Loading branch information
ho28 committed Sep 5, 2024
1 parent 588097b commit 79d7317
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# ci.yml, WR QEMU github CI configuration file.
#
# Copyright (c) 2024 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:
push:
branches:
- wr-integration
pull_request:
branches:
- wr-integration

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout QEMU source
uses: actions/checkout@v3
with:
repository: Wind-River/qemu
path: qemu
# Use a specific branch or tag if needed
ref: wr-integration

- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
autoconf \
automake \
bison \
bzip2 \
build-essential \
cmake \
curl \
flex \
git \
lftp \
libaio-dev \
libelf1 \
libfdt-dev \
libglib2.0-dev \
libncurses5-dev \
libpixman-1-dev \
libslirp-dev \
libx11-6 \
libxext6 \
libxpm4 \
libz-dev \
make \
ninja-build \
python3 \
python3-pip \
screen \
texinfo \
unzip \
vsftpd \
wget \
zlib1g-dev
- name: Build QEMU
working-directory: qemu
run: |
./configure --target-list="aarch64-softmmu,x86_64-softmmu" --enable-fdt --enable-plugins --enable-slirp
make -j $(cat /proc/cpuinfo | grep "^processor" | wc -l)
- name: Run QEMU tests
working-directory: qemu
run: |
make check
- name: Upload build artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: qemu-build
path: qemu

0 comments on commit 79d7317

Please sign in to comment.