Skip to content

Commit 81a23b4

Browse files
committed
Set AStyle to v3.5.2
1 parent e78a8a1 commit 81a23b4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/main.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ jobs:
9595
runs-on: ubuntu-latest
9696
steps:
9797
- name: Install SDL2 Dependencies
98-
run: sudo apt-get install -y libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-gfx-dev libsdl2-dev astyle
98+
run: |
99+
sudo apt-get install -y libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-gfx-dev libsdl2-dev curl
100+
curl -L https://sourceforge.net/projects/astyle/files/astyle/astyle%203.5/astyle-3.5.2.tar.bz2/download -o astyle.tar.bz2
101+
tar -xvjf astyle.tar.bz2
102+
cd astyle/build/gcc
103+
make
104+
sudo make install
99105
- name: Checkout code
100106
uses: actions/checkout@v2
101107
- name: Configure CMake

cmake/tests.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,13 @@ if(ENABLE_ASTYLE)
8383
${CHECK_FILES}
8484
)
8585

86+
list(APPEND ASTYLE_VERSION
87+
--version
88+
)
89+
8690
add_custom_target(
8791
format
92+
COMMAND ${ASTYLE_BIN} ${ASTYLE_VERSION}
8893
COMMAND ${ASTYLE_BIN} ${ASTYLE_ARGS}
8994
COMMENT "running astyle"
9095
)

0 commit comments

Comments
 (0)