diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f27c06779..74b67ec36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ @@ -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` \