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 e78a8a1 commit 81a23b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ jobs:
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 curl
curl -L https://sourceforge.net/projects/astyle/files/astyle/astyle%203.5/astyle-3.5.2.tar.bz2/download -o astyle.tar.bz2
tar -xvjf astyle.tar.bz2
cd astyle/build/gcc
make
sudo make install
- name: Checkout code
uses: actions/checkout@v2
- name: Configure CMake
Expand Down
5 changes: 5 additions & 0 deletions cmake/tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,13 @@ if(ENABLE_ASTYLE)
${CHECK_FILES}
)

list(APPEND ASTYLE_VERSION
--version
)

add_custom_target(
format
COMMAND ${ASTYLE_BIN} ${ASTYLE_VERSION}
COMMAND ${ASTYLE_BIN} ${ASTYLE_ARGS}
COMMENT "running astyle"
)
Expand Down

0 comments on commit 81a23b4

Please sign in to comment.