Skip to content

Commit cc23b9c

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

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 OCaml
19+
uses: ocaml/setup-ocaml@v3
20+
with:
21+
ocaml-compiler: 5
22+
dune-cache: true
23+
opam-disable-sandboxing: true
24+
- name: Install piqi
25+
run: |
26+
opam install piqi
27+
- name: Checkout qemu
28+
uses: actions/checkout@v4
29+
with:
30+
repository: BinaryAnalysisPlatform/qemu
31+
path: qemu
32+
- name: Build for Targets
33+
run: |
34+
cd qemu
35+
mkdir build
36+
cd build
37+
../configure --enable-plugins --target-list=parc-linux-user,sparc64-linux-user
38+
ninja

0 commit comments

Comments
 (0)