include jemalloc configuration in README steps #155
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CMake | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| BUILD_TYPE: RelWithDebInfo | |
| jobs: | |
| Ubuntu: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| compiler: [ "clang", "gcc", "musl-gcc" ] | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y musl-tools iwyu | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Build jemalloc | |
| run: | | |
| ./autogen.sh --enable-static --disable-shared --disable-cxx --disable-libdl | |
| make -j $(nproc) | |
| working-directory: ${{github.workspace}}/dep/jemalloc | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=${{matrix.compiler}} -DCMAKE_POLICY_VERSION_MINIMUM=3.5 | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build | |
| - name: CTest | |
| working-directory: ${{github.workspace}}/build | |
| run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: fsautoproc-ubuntu-x86_64-${{matrix.compiler}} | |
| path: ${{github.workspace}}/build/fsautoproc | |
| macOS: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| brew update | |
| brew install cjson include-what-you-use autoconf | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Build jemalloc | |
| run: | | |
| ./autogen.sh --enable-static --disable-shared --disable-cxx --disable-libdl | |
| make -j $(sysctl -n hw.ncpu) | |
| working-directory: ${{github.workspace}}/dep/jemalloc | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER="clang" -DCMAKE_POLICY_VERSION_MINIMUM=3.5 | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build | |
| - name: CTest | |
| working-directory: ${{github.workspace}}/build | |
| run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: fsautoproc-macos-x86_64 | |
| path: ${{github.workspace}}/build/fsautoproc |