chore: reorganize badges #64
This file contains 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: Memory Leak Detection | |
on: [push] | |
jobs: | |
build_and_run_valgrind: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
sudo apt install build-essential | |
sudo apt install cmake | |
sudo apt install libgtest-dev | |
sudo apt install dos2unix | |
sudo apt install valgrind | |
- name: Setup Sodium | |
run: | | |
cd $(mktemp -d) | |
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.19.tar.gz -O sodium.tar.gz | |
tar -xzf sodium.tar.gz | |
cp -rp ./libsodium-stable/* . | |
./configure CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-shared --with-pic | |
make && make check | |
sudo make install | |
cd - | |
- name: Setup Gtest | |
run: | | |
cd $(mktemp -d) | |
cmake /usr/src/googletest | |
make | |
sudo make install | |
cd - | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: "true" | |
- name: Build | |
run: | | |
./scripts/create-debug-makefiles.sh | |
make | |
- name: Run Unit Tests | |
run: | | |
chmod +x ./scripts/run-valgrind.sh | |
dos2unix ./scripts/run-valgrind.sh | |
./scripts/run-valgrind.sh |