From 3beab3a3ee4f008067da456ad5180b333c1f923c Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel <49393881+ianichitei@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:44:03 +0200 Subject: [PATCH 1/4] build: Use `-march=native` --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d8dd93..4f97bb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ else () -g3 -gdwarf-4 -grecord-gcc-switches - -march=westmere) + -march=native) if (CMAKE_C_COMPILER_ID STREQUAL "GNU") list(APPEND BDDISASM_COMMON_COMPILE_OPTIONS From 357b95d652c9bf6c657cead807d886e430259cd5 Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel <49393881+ianichitei@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:16:08 +0200 Subject: [PATCH 2/4] build: Remove `rapidjson` dependency --- .github/workflows/ci.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 545b5d3..6d7fcc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,21 +30,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install rapidjson - uses: actions/checkout@v3 - with: - repository: Tencent/rapidjson - path: rapidjson - - name: Build dependencies - run: | - cd rapidjson - mkdir build - cd build - cmake .. - make -j$(nproc) - sudo make install - cd .. - cd .. - name: Build all run: | mkdir build From afc3e948019f4b8e181d81e38ba64f7da4ec30bb Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel Date: Fri, 23 Feb 2024 12:21:11 +0200 Subject: [PATCH 3/4] build: Try to build on macos --- .github/workflows/ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d7fcc5..cf192e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: C/C++ CI on: push: branches: [ master ] - paths-ignore: + paths-ignore: - '*.md' - 'docs/**' - 'isagenerator/**' @@ -12,7 +12,7 @@ on: - 'LICENSE' pull_request: branches: [ master ] - paths-ignore: + paths-ignore: - '*.md' - 'docs/**' - 'isagenerator/**' @@ -21,7 +21,7 @@ on: - 'LICENSE' release: types: [published] - + jobs: Linux-build: @@ -97,7 +97,7 @@ jobs: with: files: 'x64-windows-release.zip;x86-windows-release.zip' repo-token: ${{ secrets.GITHUB_TOKEN }} - + Windows-cmake-build: runs-on: windows-latest @@ -117,6 +117,21 @@ jobs: ninja cd - +jobs: + Macos-build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + - name: Build all + run: | + mkdir build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Release + make -j$(nproc) + cd - + Code-checks: runs-on: ubuntu-latest From aeeafc414aadf07e5646f59dba0dd9ea9d555e18 Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel Date: Fri, 23 Feb 2024 12:22:18 +0200 Subject: [PATCH 4/4] build: Fix ci.yml --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf192e1..926dee5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,6 @@ jobs: ninja cd - -jobs: Macos-build: runs-on: macos-latest