Skip to content

Commit

Permalink
Update CI build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 21, 2023
1 parent cb388d7 commit 4db0042
Showing 1 changed file with 38 additions and 12 deletions.
50 changes: 38 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,50 @@
name: Build ARM user
name: Build target user

on: [pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@tracewrap-8.1
- name: Copy source.list file to include deb-src
run: |
sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/tmp.list
sudo sed -i "s/# deb-src/deb-src/g" /etc/apt/sources.list.d/tmp.list
- name: Install deps
run: |
apt --no-install-recommends -y build-dep qemu
apt install autoconf libtool protobuf-c-compiler
sudo apt-get update
sudo apt-get --no-install-recommends -y build-dep qemu
sudo apt-get install -y autoconf libtool protobuf-c-compiler
- name: Install OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.14.x
dune-cache: true
opam-disable-sandboxing: true
- name: Install piqi
run: |
opam install piqi
cs /root
git clone https://github.com/BinaryAnalysisPlatform/bap-frames.git
git clone git@github.com:BinaryAnalysisPlatform/qemu.git
- name: Build for ARM
- name: Clone qemu and bap-frames
run: |
git clone --depth 1 http://github.com/BinaryAnalysisPlatform/bap-frames.git
git clone --depth 1 http://github.com/BinaryAnalysisPlatform/qemu.git
- name: Build target
run: |
cd qemu
./configure --prefix=$HOME --with-tracewrap="/root/bap-frames" --target-list=arm-linux-user
ninja -C build
ninja -C build install
branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$branch" == "tracewrap-8.1" ]; then
# No build test needed
exit 0
fi
echo "NOTE:"
echo "Please update this workflow so it builds the target you are working on."
echo "See the commented lines for an example."
exit 1
# Don't forget to checkout your tracewrap branch under "- uses" above!
#
# Build commands:
# cd qemu
# ./configure --prefix=$HOME --with-tracewrap="/$HOME/bap-frames" --target-list=arm-linux-user
# ninja -C build
# ninja -C build install

0 comments on commit 4db0042

Please sign in to comment.