diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 545b5d3..926dee5 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: @@ -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 @@ -112,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 @@ -132,6 +117,20 @@ jobs: ninja cd - + 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 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