|
29 | 29 | steps: |
30 | 30 | - name: Checkout |
31 | 31 | uses: actions/checkout@v2 |
32 | | - - name: Installing Dependencies |
| 32 | + - name: Install Dependencies |
33 | 33 | run: sudo apt-get update && sudo apt-get install dos2unix |
34 | 34 | - name: Convert to Unix line endings |
35 | 35 | run: dos2unix */* |
|
72 | 72 | steps: |
73 | 73 | - name: Checkout |
74 | 74 | uses: actions/checkout@v2 |
75 | | - - name: Installing Dependencies |
| 75 | + - name: Install Dependencies |
76 | 76 | run: sudo apt-get update && sudo apt-get install ${{ matrix.portal.dep }} |
77 | 77 | - name: Configure |
78 | 78 | 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 .. |
@@ -189,3 +189,75 @@ jobs: |
189 | 189 | path: | |
190 | 190 | build/src/* |
191 | 191 | build/test/* |
| 192 | +
|
| 193 | + build-ubuntu-sdl2: |
| 194 | + |
| 195 | + name: Ubuntu latest - GCC, ${{ matrix.portal.name }}, Static, SDL2 |
| 196 | + runs-on: ubuntu-latest |
| 197 | + |
| 198 | + strategy: |
| 199 | + matrix: |
| 200 | + portal: [ {flag: OFF, dep: libgtk-3-dev, name: GTK}, {flag: ON, dep: libdbus-1-dev, name: Portal} ] # The NFD_PORTAL setting defaults to OFF (i.e. uses GTK) |
| 201 | + |
| 202 | + steps: |
| 203 | + - name: Checkout |
| 204 | + uses: actions/checkout@v2 |
| 205 | + - name: Install Dependencies |
| 206 | + run: sudo apt-get update && sudo apt-get install ${{ matrix.portal.dep }} libsdl2-dev libsdl2-ttf-dev |
| 207 | + - name: Configure |
| 208 | + 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 .. |
| 209 | + - name: Build |
| 210 | + run: cmake --build build --target install |
| 211 | + - name: Upload test binaries |
| 212 | + uses: actions/upload-artifact@v2 |
| 213 | + with: |
| 214 | + name: Ubuntu latest - GCC, ${{ matrix.portal.name }}, Static, SDL2 |
| 215 | + path: | |
| 216 | + build/src/* |
| 217 | + build/test/* |
| 218 | +
|
| 219 | + build-macos-sdl2: |
| 220 | + |
| 221 | + name: MacOS latest - Clang, Static, SDL2 |
| 222 | + runs-on: macos-latest |
| 223 | + |
| 224 | + steps: |
| 225 | + - name: Checkout |
| 226 | + uses: actions/checkout@v2 |
| 227 | + - name: Install Dependencies |
| 228 | + run: brew install sdl2 sdl2_ttf |
| 229 | + - name: Configure |
| 230 | + 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 .. |
| 231 | + - name: Build |
| 232 | + run: cmake --build build --target install |
| 233 | + - name: Upload test binaries |
| 234 | + uses: actions/upload-artifact@v2 |
| 235 | + with: |
| 236 | + name: MacOS latest - Clang, Static, SDL2 |
| 237 | + path: | |
| 238 | + build/src/* |
| 239 | + build/test/* |
| 240 | +
|
| 241 | + build-windows-sdl2: |
| 242 | + |
| 243 | + name: Windows latest - MSVC, Static, SDL2 |
| 244 | + runs-on: windows-latest |
| 245 | + |
| 246 | + steps: |
| 247 | + - name: Checkout |
| 248 | + uses: actions/checkout@v2 |
| 249 | + - name: Install pkgconfiglite |
| 250 | + run: choco install pkgconfiglite |
| 251 | + - name: Install Dependencies |
| 252 | + run: vcpkg integrate install && vcpkg install sdl2 sdl2-ttf --triplet=x64-windows-release |
| 253 | + - name: Configure |
| 254 | + run: mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET="x64-windows-release" -DNFD_BUILD_TESTS=OFF -DNFD_BUILD_SDL2_TESTS=ON .. |
| 255 | + - name: Build |
| 256 | + run: cmake --build build --target install --config Release |
| 257 | + - name: Upload test binaries |
| 258 | + uses: actions/upload-artifact@v2 |
| 259 | + with: |
| 260 | + name: Windows latest - MSVC, Static, SDL2 |
| 261 | + path: | |
| 262 | + build/src/Release/* |
| 263 | + build/test/Release/* |
0 commit comments