Skip to content

[ADD] cleanup dfs implementation #29

[ADD] cleanup dfs implementation

[ADD] cleanup dfs implementation #29

Workflow file for this run

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