1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

ci/GHA: fix autoreconf failure on macOS/Homebrew (#1374)

By manually installing `libtool`.

```
autoreconf -fi
  shell: /bin/bash -e {0}
configure.ac:75: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:76: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: error: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf failed with exit status: 1
```
Ref: https://github.com/libssh2/libssh2/actions/runs/8833608758/job/24253334557#step:4:1
This commit is contained in:
Viktor Szakats
2024-04-25 15:59:08 +02:00
committed by GitHub
parent 6128aee0d7
commit 0b64b30b81

View File

@@ -550,7 +550,7 @@ jobs:
cmake: -DCRYPTO_BACKEND=mbedTLS "-DMBEDTLS_INCLUDE_DIR=$(brew --prefix)/opt/mbedtls/include" "-DMBEDCRYPTO_LIBRARY=$(brew --prefix)/opt/mbedtls/lib/libmbedcrypto.a" cmake: -DCRYPTO_BACKEND=mbedTLS "-DMBEDTLS_INCLUDE_DIR=$(brew --prefix)/opt/mbedtls/include" "-DMBEDCRYPTO_LIBRARY=$(brew --prefix)/opt/mbedtls/lib/libmbedcrypto.a"
steps: steps:
- name: 'install packages' - name: 'install packages'
run: brew install automake ${{ matrix.crypto.install }} run: brew install automake libtool ${{ matrix.crypto.install }}
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: 'autotools autoreconf' - name: 'autotools autoreconf'
if: ${{ matrix.build == 'autotools' }} if: ${{ matrix.build == 'autotools' }}