]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Added GitHub Actions workflow to test against libpng.
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 6 Jun 2020 16:44:58 +0000 (09:44 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 8 Jun 2020 12:56:52 +0000 (14:56 +0200)
.github/workflows/libpng.yml [new file with mode: 0644]

diff --git a/.github/workflows/libpng.yml b/.github/workflows/libpng.yml
new file mode 100644 (file)
index 0000000..7320eee
--- /dev/null
@@ -0,0 +1,46 @@
+name: CI Libpng
+on: [pull_request]
+jobs:
+  pngtest:
+    name: Ubuntu Clang
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Checkout repository (zlib-ng)
+      uses: actions/checkout@v1
+
+    - name: Generate project files (zlib-ng)
+      run: |
+        cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DWITH_GZFILEOP=ON -DZLIB_COMPAT=ON -DZLIB_ENABLE_TESTS=OFF
+      env:
+        CC: clang
+        CFLAGS: -fPIC
+        CI: true
+
+    - name: Compile source code (zlib-ng)
+      run: |
+        cmake --build . --config Release
+
+    - name: Checkout repository (libpng)
+      uses: actions/checkout@v2
+      with:
+        repository: glennrp/libpng
+        path: libpng
+
+    - name: Generate project files (libpng)
+      run: |
+        cd libpng
+        cmake . -DCMAKE_BUILD_TYPE=Release -DPNG_TESTS=ON -DPNG_STATIC=OFF -DZLIB_INCLUDE_DIR=.. -DZLIB_LIBRARY=$PWD/../libz.a
+      env:
+        CC: clang
+        CI: true
+
+    - name: Compile source code (libpng)
+      run: |
+        cd libpng
+        cmake --build . --config Release
+
+    - name: Run test cases (libpng)
+      run: |
+        cd libpng
+        ctest -C Release --output-on-failure --max-width 120