Skip to content

Commit

Permalink
Merger
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushS3V3N committed Jul 27, 2023
2 parents 0d7fcf0 + e43b057 commit ac087d0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CMake

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run : sudo apt install libcurl4-openssl-dev libxml2-dev pkg-config


- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}

6 changes: 6 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ string remove_spaces(const string &str) {
}

// Main function
<<<<<<< HEAD
int main(int argc , char *argv[]) {
string search_query = "terrorist attack in india";
if(argc > 1){
Expand All @@ -41,6 +42,11 @@ int main(int argc , char *argv[]) {
}

string formatted_query = replace_spaces_with_plus(search_query);
=======
int main() {
string search_query = "search keyword";
string formatted_query = replace_spaces_with_plus(search_query);
>>>>>>> refs/remotes/origin/master
vector<pair<string, string>> search_results =
scrape_duckduckgo(formatted_query);

Expand Down

0 comments on commit ac087d0

Please sign in to comment.