]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
CI workflow to test external compressors dependencies
authorYonatan Komornik <11005061+yoniko@users.noreply.github.com>
Tue, 14 Feb 2023 02:00:13 +0000 (18:00 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Feb 2023 02:00:13 +0000 (18:00 -0800)
Implemented CI workflow for testing compilation with external compressors and without them. This serves as a sanity check to avoid any code dependencies on libraries that may not always be present. (Reference: #3497 for a bug fix related to this issue.)

.github/workflows/dev-short-tests.yml

index eede89f8751a9b75521f23604460f5b4cb571208..a21d56f96a2bfb39e9c130f2779d1a0895b78494 100644 (file)
@@ -186,6 +186,25 @@ jobs:
           make gcc8install
           CC=gcc-8 CFLAGS="-Werror" make -j all
 
+  make-external-compressors:
+    strategy:
+      matrix:
+        include:
+          - name: "no external compressors"
+            flags: "HAVE_ZLIB=0 HAVE_LZ4=0 HAVE_LZMA=0"
+          - name: "only zlib"
+            flags: "HAVE_ZLIB=1 HAVE_LZ4=0 HAVE_LZMA=0"
+          - name: "only lz4"
+            flags: "HAVE_ZLIB=0 HAVE_LZ4=1 HAVE_LZMA=0"
+          - name: "only lzma"
+            flags: "HAVE_ZLIB=0 HAVE_LZ4=0 HAVE_LZMA=1"
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
+      - name: Build with ${{matrix.name}}
+        run: ${{matrix.flags}} make zstd
+
+
   implicit-fall-through:
     runs-on: ubuntu-latest
     steps: