]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI/macos: fix 'is already installed' errors by using bundle
authorMarc Hoersken <info@marc-hoersken.de>
Wed, 3 Jun 2020 17:58:14 +0000 (19:58 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Wed, 3 Jun 2020 18:18:36 +0000 (20:18 +0200)
Avoid failing CI builds due to nghttp2 being already installed.

Closes #5513

.github/workflows/macos.yml

index 666c49901f3b58701801cc0440d413550775d156..ebbdeca96057ceb38034de5971dd68c075d96756 100644 (file)
@@ -47,11 +47,14 @@ jobs:
           configure: --enable-debug --disable-shared --disable-threaded-resolver --enable-alt-svc
           tflags: -n -t --shallow=25 !FTP
     steps:
-    - uses: actions/checkout@v2
+    - run: echo libtool autoconf automake pkg-config ${{ matrix.build.install }} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
+      name: 'brew bundle'
 
-    - run: brew update && brew install libtool autoconf automake pkg-config ${{ matrix.build.install }}
+    - run: brew update && brew bundle install --no-lock --file /tmp/Brewfile
       name: 'brew install'
 
+    - uses: actions/checkout@v2
+
     - run: ./buildconf && ./configure ${{ matrix.build.configure }}
       name: 'configure'
 
@@ -85,11 +88,14 @@ jobs:
           install: nghttp2 libressl
           generate: -DOPENSSL_ROOT_DIR=/usr/local/opt/libressl -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON
     steps:
-    - uses: actions/checkout@v2
+    - run: echo libtool autoconf automake pkg-config ${{ matrix.build.install }} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
+      name: 'brew bundle'
 
-    - run: brew update && brew install libtool autoconf automake pkg-config ${{ matrix.build.install }}
+    - run: brew update && brew bundle install --no-lock --file /tmp/Brewfile
       name: 'brew install'
 
+    - uses: actions/checkout@v2
+
     - run: cmake -H. -Bbuild ${{ matrix.build.generate }}
       name: 'cmake generate'