From 4f4a79bc3b395a629fc06f7cd19ba0a51437399f Mon Sep 17 00:00:00 2001 From: Christian Heitman Date: Fri, 20 Dec 2024 13:58:35 -0300 Subject: [PATCH] Update Unicorn --- .github/workflows/osx.yml | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index 1da38efb4..2193ab325 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -27,8 +27,8 @@ jobs: - name: Install Z3 run: | - wget https://github.com/Z3Prover/z3/releases/download/z3-4.13.3/z3-4.13.3-arm64-osx-13.7.zip - unzip z3-4.13.3-arm64-osx-13.7.zip + wget -q https://github.com/Z3Prover/z3/releases/download/z3-4.13.3/z3-4.13.3-arm64-osx-13.7.zip + unzip -q z3-4.13.3-arm64-osx-13.7.zip sudo python -m pip install z3-solver==4.13.3.0 - name: Install Deps @@ -51,7 +51,7 @@ jobs: - name: Install Capstone run: | - wget https://github.com/aquynh/capstone/archive/5.0.3.tar.gz + wget -q https://github.com/aquynh/capstone/archive/5.0.3.tar.gz tar -xf ./5.0.3.tar.gz cd ./capstone-5.0.3 bash ./make.sh @@ -66,24 +66,24 @@ jobs: run: | sudo python -m pip install lief - # - name: Compile Triton - # run: | - # mkdir ./build - # cd ./build - # cmake .. - # cmake -DZ3_INTERFACE=ON \ - # -DZ3_INCLUDE_DIRS=${{ github.workspace }}/z3-4.13.3-arm64-osx-13.7/include \ - # -DZ3_LIBRARIES=${{ github.workspace }}/z3-4.13.3-arm64-osx-13.7/bin/libz3.a \ - # -DBITWUZLA_INTERFACE=ON \ - # -DBITWUZLA_INCLUDE_DIRS=${{ github.workspace }}/bitwuzla/install/include \ - # -DBITWUZLA_LIBRARIES=${{ github.workspace }}/bitwuzla/install/lib/libbitwuzla.dylib \ - # -DLLVM_INTERFACE=ON \ - # -DCMAKE_PREFIX_PATH=${{env.LLVM_PATH}} \ - # -DBOOST_INTERFACE=OFF .. - # sudo make -j3 install - # env: - # Z3_INCLUDE_DIRS: ${{ github.workspace }}/z3-4.13.3-arm64-osx-13.7/include - # Z3_LIBRARIES: ${{ github.workspace }}/z3-4.13.3-arm64-osx-13.7/bin/libz3.a + - name: Compile Triton + run: | + mkdir ./build + cd ./build + cmake .. + cmake -DZ3_INTERFACE=ON \ + -DZ3_INCLUDE_DIRS=${{ github.workspace }}/z3-4.13.3-arm64-osx-13.7/include \ + -DZ3_LIBRARIES=${{ github.workspace }}/z3-4.13.3-arm64-osx-13.7/bin/libz3.a \ + -DBITWUZLA_INTERFACE=ON \ + -DBITWUZLA_INCLUDE_DIRS=${{ github.workspace }}/bitwuzla/install/include \ + -DBITWUZLA_LIBRARIES=${{ github.workspace }}/bitwuzla/install/lib/libbitwuzla.dylib \ + -DLLVM_INTERFACE=ON \ + -DCMAKE_PREFIX_PATH=${{env.LLVM_PATH}} \ + -DBOOST_INTERFACE=OFF .. + sudo make -j3 install + env: + Z3_INCLUDE_DIRS: ${{ github.workspace }}/z3-4.13.3-arm64-osx-13.7/include + Z3_LIBRARIES: ${{ github.workspace }}/z3-4.13.3-arm64-osx-13.7/bin/libz3.a # # NOTE Tests will fail because currently they only pass with Unicorn # # v2.0.0. However, Unicorn v2.0.0 does not build on the macos-14 runner.