Skip to content

Commit 70958ab

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

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yaml

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

0 commit comments

Comments
 (0)