Skip to content

Commit 8ecfd8a

Browse files
committed
CI: Correct command for building libunicorn
1 parent a4310fb commit 8ecfd8a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/x86-64.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ jobs:
4343
repository: unicorn-engine/unicorn
4444
path: externals/unicorn
4545

46-
- name: Build unicorn
46+
- name: Configure and build unicorn
4747
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}}
4848
working-directory: externals/unicorn
49-
run: UNICORN_ARCHS=aarch64,arm ./make.sh
49+
run: |
50+
mkdir build; cd build;
51+
cmake .. -DCMAKE_BUILD_TYPE=Release
52+
UNICORN_ARCHS="aarch64,arm" make
5053
5154
- name: Configure CMake
5255
if: ${{matrix.os == 'ubuntu-latest'}}
@@ -63,7 +66,7 @@ jobs:
6366
-DDYNARMIC_TESTS_USE_UNICORN=1
6467
-DDYNARMIC_USE_LLVM=1
6568
-DLIBUNICORN_INCLUDE_DIR=${{github.workspace}}/externals/unicorn/include
66-
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/libunicorn.a
69+
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/build/libunicorn.a
6770
-G Ninja
6871
6972
- name: Configure CMake
@@ -77,7 +80,7 @@ jobs:
7780
-DDYNARMIC_TESTS_USE_UNICORN=1
7881
-DDYNARMIC_USE_LLVM=1
7982
-DLIBUNICORN_INCLUDE_DIR=${{github.workspace}}/externals/unicorn/include
80-
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/libunicorn.a
83+
-DLIBUNICORN_LIBRARY=${{github.workspace}}/externals/unicorn/build/libunicorn.a
8184
-G Ninja
8285
8386
- name: Configure CMake

0 commit comments

Comments
 (0)