Skip to content

Commit 48e0f40

Browse files
committed
Add workflow to test the plugin build.
1 parent a040e41 commit 48e0f40

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on: [pull_request, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Python 3.x
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: '3.x'
14+
- name: Install deps
15+
run: |
16+
sudo apt-get -y update
17+
sudo apt-get install -y git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build autoconf libtool protobuf-c-compiler libprotobuf-c-dev
18+
- name: Install piqi
19+
run: |
20+
curl -OL https://raw.github.com/alavrik/piqi-binary/master/Linux-x86_64/piqi
21+
chmod +x piqi
22+
sudo mv piqi /usr/local/bin
23+
piqi --version
24+
- name: Checkout qemu
25+
uses: actions/checkout@v4
26+
with:
27+
repository: BinaryAnalysisPlatform/qemu
28+
path: qemu
29+
submodules: true
30+
- name: Build for Targets
31+
run: |
32+
cd qemu
33+
mkdir build
34+
cd build
35+
../configure --enable-plugins --target-list=sparc-linux-user,sparc64-linux-user
36+
ninja

0 commit comments

Comments
 (0)