| 1 | name: Libpng |
| 2 | on: [push, pull_request] |
| 3 | jobs: |
| 4 | libpng: |
| 5 | name: Ubuntu Clang |
| 6 | runs-on: ubuntu-latest |
| 7 | steps: |
| 8 | - name: Checkout repository (zlib-ng) |
| 9 | uses: actions/checkout@v3 |
| 10 | |
| 11 | - name: Generate project files (zlib-ng) |
| 12 | run: | |
| 13 | cmake . \ |
| 14 | -DCMAKE_BUILD_TYPE=Release \ |
| 15 | -DBUILD_SHARED_LIBS=OFF \ |
| 16 | -DZLIB_COMPAT=ON \ |
| 17 | -DZLIB_ENABLE_TESTS=OFF |
| 18 | env: |
| 19 | CC: clang |
| 20 | CFLAGS: -fPIC |
| 21 | CI: true |
| 22 | |
| 23 | - name: Compile source code (zlib-ng) |
| 24 | run: cmake --build . --config Release |
| 25 | |
| 26 | - name: Checkout repository (libpng) |
| 27 | uses: actions/checkout@v3 |
| 28 | with: |
| 29 | repository: glennrp/libpng |
| 30 | path: libpng |
| 31 | |
| 32 | - name: Generate project files (libpng) |
| 33 | run: | |
| 34 | cmake . \ |
| 35 | -DCMAKE_BUILD_TYPE=Release \ |
| 36 | -DPNG_TESTS=ON \ |
| 37 | -DPNG_STATIC=OFF \ |
| 38 | -DZLIB_INCLUDE_DIR=.. \ |
| 39 | -DZLIB_LIBRARY=$PWD/../libz.a |
| 40 | working-directory: libpng |
| 41 | env: |
| 42 | CC: clang |
| 43 | CI: true |
| 44 | |
| 45 | - name: Compile source code (libpng) |
| 46 | run: cmake --build . --config Release |
| 47 | working-directory: libpng |
| 48 | |
| 49 | - name: Run test cases (libpng) |
| 50 | run: ctest -C Release --output-on-failure --max-width 120 |
| 51 | working-directory: libpng |