1414
1515 steps :
1616 - name : Checkout
17- uses : actions/checkout@v2
17+ uses : actions/checkout@v4
1818 - name : Format code
1919 # ClangFormat 14 has a bug, which seems to be fixed in ClangFormat 15. Until GitHub-hosted runners support ClangFormat 15, we will stay at ClangFormat 13.
2020 run : find src/ test/ -iname '*.c' -or -iname '*.cpp' -or -iname '*.m' -or -iname '*.mm' -or -iname '*.h' -or -iname '*.hpp' | xargs clang-format-13 -i -style=file
2828
2929 steps :
3030 - name : Checkout
31- uses : actions/checkout@v2
31+ uses : actions/checkout@v4
3232 - name : Install Dependencies
3333 run : sudo apt-get update && sudo apt-get install dos2unix
3434 - name : Convert to Unix line endings
@@ -71,15 +71,15 @@ jobs:
7171
7272 steps :
7373 - name : Checkout
74- uses : actions/checkout@v2
74+ uses : actions/checkout@v4
7575 - name : Install Dependencies
7676 run : sudo apt-get update && sudo apt-get install ${{ matrix.portal.dep }}
7777 - name : Configure
7878 run : mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=${{ matrix.compiler.c }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cpp }} -DCMAKE_CXX_STANDARD=${{ matrix.cppstd }} -DCMAKE_C_FLAGS="-Wall -Wextra -Werror -pedantic" -DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror -pedantic" -DNFD_PORTAL=${{ matrix.portal.flag }} -DNFD_APPEND_EXTENSION=${{ matrix.autoappend.flag }} -DBUILD_SHARED_LIBS=${{ matrix.shared_lib.flag }} -DNFD_BUILD_TESTS=ON ..
7979 - name : Build
8080 run : cmake --build build --target install
8181 - name : Upload test binaries
82- uses : actions/upload-artifact@v2
82+ uses : actions/upload-artifact@v4
8383 with :
8484 name : Ubuntu ${{ matrix.os.name }} - ${{ matrix.compiler.name }}, ${{ matrix.portal.name }}, ${{ matrix.autoappend.name }}, ${{ matrix.shared_lib.name }}, C++${{ matrix.cppstd }}
8585 path : |
@@ -93,21 +93,18 @@ jobs:
9393
9494 strategy :
9595 matrix :
96- os : [ {label: macos-latest, name: latest}, {label: macos-11, name: 11} ]
97- shared_lib : [ {flag: OFF, name: Static} ]
98- include :
99- - os : {label: macos-latest, name: latest}
100- shared_lib : {flag: ON, name: Shared}
96+ os : [ {label: macos-latest, name: latest} ]
97+ shared_lib : [ {flag: OFF, name: Static}, {flag: ON, name: Shared} ]
10198
10299 steps :
103100 - name : Checkout
104- uses : actions/checkout@v2
101+ uses : actions/checkout@v4
105102 - name : Configure
106103 run : mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra -Werror -pedantic" -DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror -pedantic" -DBUILD_SHARED_LIBS=${{ matrix.shared_lib.flag }} -DNFD_BUILD_TESTS=ON ..
107104 - name : Build
108105 run : cmake --build build --target install
109106 - name : Upload test binaries
110- uses : actions/upload-artifact@v2
107+ uses : actions/upload-artifact@v4
111108 with :
112109 name : MacOS ${{ matrix.os.name }} - Clang, ${{ matrix.shared_lib.name }}
113110 path : |
@@ -125,13 +122,13 @@ jobs:
125122
126123 steps :
127124 - name : Checkout
128- uses : actions/checkout@v2
125+ uses : actions/checkout@v4
129126 - name : Configure
130127 run : mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX="../install" -DBUILD_SHARED_LIBS=${{ matrix.shared_lib.flag }} -DNFD_BUILD_TESTS=ON ..
131128 - name : Build
132129 run : cmake --build build --target install --config Release
133130 - name : Upload test binaries
134- uses : actions/upload-artifact@v2
131+ uses : actions/upload-artifact@v4
135132 with :
136133 name : Windows latest - MSVC, ${{ matrix.shared_lib.name }}
137134 path : |
@@ -145,13 +142,13 @@ jobs:
145142
146143 steps :
147144 - name : Checkout
148- uses : actions/checkout@v2
145+ uses : actions/checkout@v4
149146 - name : Configure
150147 run : mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX="../install" -T ClangCL -DNFD_BUILD_TESTS=ON ..
151148 - name : Build
152149 run : cmake --build build --target install --config Release
153150 - name : Upload test binaries
154- uses : actions/upload-artifact@v2
151+ uses : actions/upload-artifact@v4
155152 with :
156153 name : Windows latest - Clang, Static
157154 path : |
@@ -169,7 +166,7 @@ jobs:
169166
170167 steps :
171168 - name : Checkout
172- uses : actions/checkout@v2
169+ uses : actions/checkout@v4
173170 - name : Set up MinGW-w64
174171 uses : msys2/setup-msys2@v2
175172 with :
@@ -183,7 +180,7 @@ jobs:
183180 - name : Build
184181 run : cmake --build build --target install
185182 - name : Upload test binaries
186- uses : actions/upload-artifact@v2
183+ uses : actions/upload-artifact@v4
187184 with :
188185 name : Windows latest - MinGW, Static
189186 path : |
@@ -201,15 +198,15 @@ jobs:
201198
202199 steps :
203200 - name : Checkout
204- uses : actions/checkout@v2
201+ uses : actions/checkout@v4
205202 - name : Install Dependencies
206203 run : sudo apt-get update && sudo apt-get install ${{ matrix.portal.dep }} libsdl2-dev libsdl2-ttf-dev
207204 - name : Configure
208205 run : mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra -Werror -pedantic" -DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror -pedantic" -DNFD_PORTAL=${{ matrix.portal.flag }} -DNFD_APPEND_EXTENSION=OFF -DNFD_BUILD_TESTS=OFF -DNFD_BUILD_SDL2_TESTS=ON ..
209206 - name : Build
210207 run : cmake --build build --target install
211208 - name : Upload test binaries
212- uses : actions/upload-artifact@v2
209+ uses : actions/upload-artifact@v4
213210 with :
214211 name : Ubuntu latest - GCC, ${{ matrix.portal.name }}, Static, SDL2
215212 path : |
@@ -223,15 +220,15 @@ jobs:
223220
224221 steps :
225222 - name : Checkout
226- uses : actions/checkout@v2
223+ uses : actions/checkout@v4
227224 - name : Install Dependencies
228225 run : brew install sdl2 sdl2_ttf
229226 - name : Configure
230227 run : mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra -Werror -pedantic" -DCMAKE_CXX_FLAGS="-Wall -Wextra -Werror -pedantic" -DNFD_BUILD_TESTS=OFF -DNFD_BUILD_SDL2_TESTS=ON ..
231228 - name : Build
232229 run : cmake --build build --target install
233230 - name : Upload test binaries
234- uses : actions/upload-artifact@v2
231+ uses : actions/upload-artifact@v4
235232 with :
236233 name : MacOS latest - Clang, Static, SDL2
237234 path : |
@@ -245,7 +242,7 @@ jobs:
245242
246243 steps :
247244 - name : Checkout
248- uses : actions/checkout@v2
245+ uses : actions/checkout@v4
249246 - name : Install pkgconfiglite
250247 run : choco install pkgconfiglite
251248 - name : Install Dependencies
@@ -255,7 +252,7 @@ jobs:
255252 - name : Build
256253 run : cmake --build build --target install --config Release
257254 - name : Upload test binaries
258- uses : actions/upload-artifact@v2
255+ uses : actions/upload-artifact@v4
259256 with :
260257 name : Windows latest - MSVC, Static, SDL2
261258 path : |
0 commit comments