From f26434f912fc0321096c840f89332cca1d5e732f Mon Sep 17 00:00:00 2001 From: Rot127 Date: Fri, 17 Nov 2023 11:42:10 -0500 Subject: [PATCH] Update CI build.yaml --- .github/workflows/build.yaml | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 92c1c33723b49..9d3b6b9abed54 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build ARM user +name: Build target user on: [pull_request, workflow_dispatch] @@ -6,19 +6,32 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - name: Install deps run: | - apt --no-install-recommends -y build-dep qemu - apt install autoconf libtool protobuf-c-compiler + 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 + 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 http://github.com/BinaryAnalysisPlatform/bap-frames.git + git clone 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 + echo "Add build for the target." + exit 1 + # ./configure --prefix=$HOME --with-tracewrap="/root/bap-frames" --target-list=arm-linux-user + # ninja -C build + # ninja -C build install