-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from RitheeshBaradwaj/chore/add-build-workflow
Chore/add build workflow
- Loading branch information
Showing
3 changed files
with
92 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build C++ Project | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install build dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmake g++ lcov googletest | ||
cd /usr/src/googletest | ||
sudo cmake CMakeLists.txt | ||
sudo make | ||
sudo cp lib/*.a /usr/lib | ||
cd ~ | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build project | ||
run: | | ||
ls -al | ||
chmod 755 build.sh | ||
./build.sh -c | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: wordprocessor-build | ||
path: | | ||
_build/ | ||
_bin/ | ||
_test_reports/ | ||
_test_coverage/ | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: wordprocessor-build |
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
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