Skip to content

Commit

Permalink
amended executable name in .gitignore as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Gabriel-Susman committed Nov 16, 2023
1 parent 228fe1f commit 4cb348b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 20 deletions.
45 changes: 28 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
name: ci
name: C++ Test with Google Test

on: push
on:
push:
branches:
- main

jobs:
test:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up C++
uses: actions/setup-cpp@v2
with:
cpp-version: '14'

- name: Install dependencies
- name: Set up CMake and build tools
run: |
sudo apt-get update -y
sudo apt-get install -y build-essential
- name: Build
run: g++ -o myapp main.cpp

- name: Run tests
run: ./myapp
sudo apt-get update
sudo apt-get install -y cmake g++
cmake --version
g++ --version
- name: Download and build Google Test
run: |
git clone https://github.com/google/googletest.git
cd googletest
mkdir build
cd build
cmake ..
make
- name: Build and run tests
run: |
cd $GITHUB_WORKSPACE # Switch back to the project directory
mkdir build
cd build
cmake ..
make
./tests
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
vendor/
.DS_Store
.DS_Store
main
delphi-inferntial-service
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ test-service:

# compile orchestration
comp-orch:
g++ -std=c++14 main.cpp train.cpp setup.cpp create_loaders.cpp model_checkpoint.cpp -o delphi-training-orchestration-service
g++ -std=c++14 main.cpp train.cpp setup.cpp create_loaders.cpp model_checkpoint.cpp -o delphi-inferential-service

# execute orchestration
exec-orch:
./delphi-training-orchestration-service
./delphi-inferential-service
Binary file removed delphi-training-orchestration-service
Binary file not shown.

0 comments on commit 4cb348b

Please sign in to comment.