Skip to content

Commit

Permalink
Add snmalloc for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jul 19, 2024
1 parent 8e16c57 commit cfd2402
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,29 @@ jobs:
name: proxy_server-linux_mimalloc
path: build/bin/proxy_server

SnMalloc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update OS and Compilers
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt install -y cmake gcc-12 g++-12 ninja-build
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 10
- name: Build proxy
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_BUILD_WERROR=OFF -DENABLE_SNMALLOC_STATIC=ON -G Ninja
cmake --build build --config Release
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: proxy_server-linux_snmalloc
path: build/bin/proxy_server

Windows:
runs-on: windows-latest
steps:
Expand Down

0 comments on commit cfd2402

Please sign in to comment.