Skip to content

Commit

Permalink
ci: Build QEMU
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrtonm committed May 29, 2024
1 parent 8b9a157 commit ff75a18
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ jobs:
aarch64-wip-test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Test ARM build
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y \
Expand All @@ -82,13 +80,25 @@ jobs:
cmake ninja-build \
llvm-15-dev libclang-15-dev \
zlib1g-dev \
qemu-user-static
libcapstone-dev
- name: Check out QEMU
uses: actions/checkout@v4
with:
repository: immunant/qemu
path: ${{ github.workspace }}/qemu
- name: Build QEMU
working-directory: ${{ github.workspace }}/qemu
run: ./build.sh
- name: Check out code
uses: actions/checkout@v4
- name: Test ARM build
run: |
LLVM_DIR=`llvm-config-15 --cmakedir`
Clang_DIR=`realpath $LLVM_DIR/../clang`
mkdir build
pushd build
cmake .. \
-DCMAKE_CROSSCOMPILING_EMULATOR=`which qemu-aarch64-static` \
-DCMAKE_CROSSCOMPILING_EMULATOR=${{ github.workspace }}/qemu/build/qemu-aarch64 \
-DCMAKE_TOOLCHAIN_FILE=../cmake/aarch64-toolchain.cmake \
-DClang_DIR=$Clang_DIR \
-DCLANG_EXE=`which clang-15` \
Expand Down

0 comments on commit ff75a18

Please sign in to comment.