]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add wine repositories only when needed.
authorNathan Moinvaziri <nathan@nathanm.com>
Thu, 3 Feb 2022 23:14:56 +0000 (15:14 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 6 Feb 2022 15:51:46 +0000 (16:51 +0100)
.github/workflows/cmake.yml

index 6700810783713d7a22ea9ee32c0b6130f6628093..f99e6b1407e60e0ad138828af6299ec1d377670d 100644 (file)
@@ -373,11 +373,15 @@ jobs:
         repository: zlib-ng/corpora
         path: test/data/corpora
 
+    - name: Add repositories (Wine)
+      if: contains(matrix.packages, 'wine')
+      run: |
+        sudo dpkg --add-architecture i386
+        sudo apt-add-repository ppa:ondrej/php -y
+
     - name: Install packages (Ubuntu)
       if: runner.os == 'Linux' && matrix.packages
       run: |
-        sudo dpkg --add-architecture i386 # Required for wine32
-        sudo apt-add-repository ppa:ondrej/php -y
         sudo apt-get update
         sudo apt-get install -y ${{ matrix.packages }}