Commit 81a23b4 1 parent e78a8a1 commit 81a23b4 Copy full SHA for 81a23b4
File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 95
95
runs-on : ubuntu-latest
96
96
steps :
97
97
- 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
99
105
- name : Checkout code
100
106
uses : actions/checkout@v2
101
107
- name : Configure CMake
Original file line number Diff line number Diff line change @@ -83,8 +83,13 @@ if(ENABLE_ASTYLE)
83
83
${CHECK_FILES}
84
84
)
85
85
86
+ list (APPEND ASTYLE_VERSION
87
+ --version
88
+ )
89
+
86
90
add_custom_target (
87
91
format
92
+ COMMAND ${ASTYLE_BIN} ${ASTYLE_VERSION}
88
93
COMMAND ${ASTYLE_BIN} ${ASTYLE_ARGS}
89
94
COMMENT "running astyle"
90
95
)
You can’t perform that action at this time.
0 commit comments