-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52c9803
commit 15e7041
Showing
2 changed files
with
16 additions
and
5 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 |
---|---|---|
|
@@ -4,7 +4,6 @@ name: build | |
|
||
on: | ||
push: | ||
branches: [main, dev] | ||
|
||
jobs: | ||
ubuntu: | ||
|
@@ -20,9 +19,20 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
# pcre is a dependency of cppcheck | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install cppcheck libzstd-dev ninja-build | ||
sudo apt-get install libpcre3 libpcre3-dev libzstd-dev ninja-build | ||
- name: Install cppcheck | ||
run: | | ||
git clone https://github.com/danmar/cppcheck.git | ||
cd cppcheck | ||
cmake -S. -B build \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DUSE_MATCHCOMPILER=1 \ | ||
-DHAVE_RULES=1 | ||
cmake --build build --config Release | ||
sudo cmake --install build --prefix /usr | ||
- name: Install gtest | ||
uses: MarkusJx/[email protected] | ||
- name: CMake configure | ||
|
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