Skip to content

Commit

Permalink
Set AStyle to v3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alxhoff committed Sep 9, 2024
1 parent 7e75b07 commit 1fdae32
Showing 1 changed file with 63 additions and 63 deletions.
126 changes: 63 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ on:
push:
branches:
- master
# - pong
# - clean
# - udp_demo
# - ci
# - pong
# - clean
# - udp_demo
# - ci

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
name: Standard Build
jobs:
build:
name: Standard Build
runs-on: ubuntu-latest
steps:
- name: Install SDL2 Dependencies
Expand All @@ -33,8 +33,8 @@ jobs:
run: mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- name: Build with CMake
run: cd build && make
doxygen:
name: Doxygen Build
doxygen:
name: Doxygen Build
permissions:
contents: write
pages: write
Expand All @@ -49,53 +49,53 @@ jobs:

- name: Install Doxygen Dependencies
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz fonts-freefont-ttf

- name: Generate docs
shell: bash
run: mkdir -p build && cd build && cmake -DDOCS_ONLY=on .. && make docs

- name: Print warnings
run: |
if [[ -s "doxygen_warnings.txt" ]]; then
echo "You must fix doxygen before submitting a pull request"
echo "Build doxygen: 'cmake -DDOCS=ON .. & make docs'"
echo ""
cat doxygen_warnings.txt
exit -1
fi
echo "You must fix doxygen before submitting a pull request"
echo "Build doxygen: 'cmake -DDOCS=ON .. & make docs'"
echo ""
cat doxygen_warnings.txt
exit -1
fi
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs/docs/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
git_check:
name: Run Git Check
git_check:
name: Run Git Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run Check and Print Warning
run: |
if [[ -n $(git diff --check HEAD^) ]]; then
echo "You must remove whitespace before submitting a pull request"
echo ""
git diff --check HEAD^
exit -1
echo "You must remove whitespace before submitting a pull request"
echo ""
git diff --check HEAD^
exit -1
fi
astyle_format:
name: Run AStyle Format
astyle_format:
name: Run AStyle Format
runs-on: ubuntu-latest
steps:
- name: Install SDL2 Dependencies
run: sudo apt-get install -y libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-gfx-dev libsdl2-dev astyle
run: sudo apt-get install -y libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-gfx-dev libsdl2-dev astyle=3.5.2
- name: Checkout code
uses: actions/checkout@v2
- name: Configure CMake
Expand All @@ -107,13 +107,13 @@ jobs:
- name: Print Warnings
run: |
if [[ -n $(git diff) ]]; then
echo "You must run make format before submitting a pull request"
echo ""
git diff
exit -1
echo "You must run make format before submitting a pull request"
echo ""
git diff
exit -1
fi
clang_tidy:
name: Run Clang Tidy
clang_tidy:
name: Run Clang Tidy
runs-on: ubuntu-latest
steps:
- name: Install SDL2 Dependencies
Expand All @@ -133,22 +133,22 @@ jobs:
- name: Print Warnings
run: |
if [[ -n $(grep "error: " build/output.txt) ]]; then
echo "You must pass the clang tidy checks before submitting a pull request"
echo "cmake -DENABLE_CLANG_TIDY=ON .. & make tidy"
echo ""
grep --color -E '^|error: ' build/output.txt
exit -1
elif [[ -n $(grep "warning: " build/output.txt) ]]; then
echo "Warnings:"
grep --color -E '^|warning: ' build/output.txt
echo -e "\033[1;32m\xE2\x9C\x93 passed - with warnings\033[0m $1"
exit 0
else
echo -e "\033[1;32m\xE2\x9C\x93 passed - no warnings\033[0m $1"
exit 0
fi
cppcheck:
name: Run CPPCheck
echo "You must pass the clang tidy checks before submitting a pull request"
echo "cmake -DENABLE_CLANG_TIDY=ON .. & make tidy"
echo ""
grep --color -E '^|error: ' build/output.txt
exit -1
elif [[ -n $(grep "warning: " build/output.txt) ]]; then
echo "Warnings:"
grep --color -E '^|warning: ' build/output.txt
echo -e "\033[1;32m\xE2\x9C\x93 passed - with warnings\033[0m $1"
exit 0
else
echo -e "\033[1;32m\xE2\x9C\x93 passed - no warnings\033[0m $1"
exit 0
fi
cppcheck:
name: Run CPPCheck
runs-on: ubuntu-latest
steps:
- name: Install SDL2 Dependencies
Expand All @@ -161,8 +161,8 @@ jobs:
run: cd build && make
- name: Run Checks
run: cd build && make check
google_asan:
name: Run Google Address Sanitizer
google_asan:
name: Run Google Address Sanitizer
runs-on: ubuntu-latest
steps:
- name: Install SDL2 Dependencies
Expand All @@ -181,8 +181,8 @@ jobs:
run: killall FreeRTOS_Emulator || echo "Nothing running..."
- name: Check for Errors
run: echo "TODO"
google_usan:
name: Run Google Undefined Sanitizer
google_usan:
name: Run Google Undefined Sanitizer
runs-on: ubuntu-latest
steps:
- name: Install SDL2 Dependencies
Expand All @@ -201,8 +201,8 @@ jobs:
run: killall FreeRTOS_Emulator || echo "Not running..."
- name: Check for Errors
run: echo "TODO"
google_tsan:
name: Run Google Thread Sanitizer
google_tsan:
name: Run Google Thread Sanitizer
runs-on: ubuntu-latest
steps:
- name: Install SDL2 Dependencies
Expand All @@ -221,8 +221,8 @@ jobs:
run: killall FreeRTOS_Emulator || echo "Not running..."
- name: Check for Errors
run: echo "TODO"
codecov:
name: Run Codecov
codecov:
name: Run Codecov
runs-on: ubuntu-latest
steps:
- name: Install SDL2 Dependencies
Expand All @@ -236,5 +236,5 @@ jobs:
- name: Setup Test
run: cd build && make test & sleep 20
- name: Publish to Codecov
#run: bash <(curl -s https://codecov.io/bash)
uses: codecov/codecov-action@v1
#run: bash <(curl -s https://codecov.io/bash)
uses: codecov/codecov-action@v1

0 comments on commit 1fdae32

Please sign in to comment.