Skip to content

Commit 90c55bb

Browse files
committed
Add workflow to test the plugin build.
1 parent a040e41 commit 90c55bb

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/build.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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: Copy source.list file to include deb-src
15+
run: |
16+
sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/tmp.list
17+
sudo sed -i "s/# deb-src/deb-src/g" /etc/apt/sources.list.d/tmp.list
18+
- name: Install deps
19+
run: |
20+
sudo apt-get -y update
21+
sudo apt-get --no-install-recommends -y build-dep qemu
22+
sudo apt-get install -y autoconf libtool protobuf-c-compiler libprotobuf-c-dev ninja meson
23+
- name: Install OCaml
24+
uses: ocaml/setup-ocaml@v2
25+
with:
26+
ocaml-compiler: 4.14.x
27+
dune-cache: true
28+
opam-disable-sandboxing: true
29+
- name: Install piqi
30+
run: |
31+
opam install piqi
32+
- name: Checkout qemu
33+
uses: actions/checkout@v4
34+
with:
35+
repository: BinaryAnalysisPlatform/qemu
36+
path: qemu
37+
- name: Build for Targets
38+
run: |
39+
cd qemu
40+
mkdir build
41+
cd build
42+
../configure --enable-plugins --target-list=parc-linux-user,sparc64-linux-user
43+
ninja

0 commit comments

Comments
 (0)