[ADD] cleanup dfs implementation #29
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: C++ CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake g++ gcc | |
- name: Install Catch2 | |
run: | | |
git clone https://github.com/catchorg/Catch2.git | |
cd Catch2 | |
cmake -B build -S . -DBUILD_TESTING=OFF | |
sudo cmake --build build/ --target install | |
sudo cmake --install build | |
- name: Build | |
run: | | |
cd data_structures | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
- name: Run tests | |
run: | | |
cd data_structures/build | |
ctest --output-on-failure |