Skip to content

Commit

Permalink
Update CI to replicate the one of ns-3.41
Browse files Browse the repository at this point in the history
  • Loading branch information
non-det-alle committed Mar 19, 2024
1 parent 5729c20 commit b37fd73
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/actions/install-linting/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ runs:
run: >
apt update && DEBIAN_FRONTEND=noninteractive apt install -y
clang cmake
clang-tidy clang-tidy-16
python3 python3-pip
clang-tidy clang-tidy-17
libboost-all-dev libeigen3-dev libgtk-3-dev libsqlite3-dev
gsl-bin libgsl-dev libgsl27
git ssh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/.formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
image: ubuntu:rolling
strategy:
matrix:
version: [14, 15, 16]
version: [14, 15, 16, 17]
timeout-minutes: 60
steps:
# The following step is required in all jobs that use this repo's actions
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/.linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
git -C src/lorawan/ tag empty $(git hash-object -t tree /dev/null) &&
git -C src/lorawan/ diff -U0 empty
--src-prefix=a/src/lorawan/ --dst-prefix=b/src/lorawan/ |
clang-tidy-diff-16.py -path cmake-cache/ -p1 -quiet -use-color
clang-tidy-diff-17.py -path cmake-cache/ -p1 -quiet -use-color
-iregex "src\/lorawan\/.+\.(cpp|cc|cxx|c|h|hpp)"
1> $CLANG_TIDY_OUTPUT
2> /dev/null
- name: "Check job results"
run: |
(! egrep -A 3 "error:|warning:|note:" $CLANG_TIDY_OUTPUT)
(! egrep -v "file not found \[clang-diagnostic-error\]" $CLANG_TIDY_OUTPUT | egrep -A3 "error:|warning:|note:")
echo "No clang-tidy errors found"
- if: failure()
name: "Upload clang-tidy-output.log"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/.test-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
- name: "Check documentation coverage and formatting"
run: |
doc/doxygen.warnings.report.sh -i -m lorawan
python3 utils/check-style-clang-format.py --no-formatting --no-tabs doc/introspected-doxygen.h
python3 utils/check-style-clang-format.py --no-formatting --no-tabs doc/introspected-command-line.h
python3 utils/check-style-clang-format.py --no-formatting --no-tabs doc/introspected-doxygen.h doc/introspected-command-line.h
./ns3 clean
doxygen -v
- name: "Upload doxygen warnings as artifact"
if: always()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit b37fd73

Please sign in to comment.