Skip to content

Commit 5aa051f

Browse files
committed
Add workflow to test the plugin build.
1 parent a040e41 commit 5aa051f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yaml

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

0 commit comments

Comments
 (0)