-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amended executable name in .gitignore as well
- Loading branch information
1 parent
228fe1f
commit 4cb348b
Showing
4 changed files
with
33 additions
and
20 deletions.
There are no files selected for viewing
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
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
vendor/ | ||
.DS_Store | ||
.DS_Store | ||
main | ||
delphi-inferntial-service |
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
Binary file not shown.