From 2e5937a280f3bde23e32396b3440bcdbe5d164e6 Mon Sep 17 00:00:00 2001 From: jelly <1355532189@qq.com> Date: Thu, 5 Sep 2024 23:09:16 +0800 Subject: [PATCH] Install automake --- .github/workflows/test.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f9adafc..1df80adb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,6 +41,12 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + - name: Install Homebrew for MacOs + if: matrix.os == 'macos-latest' + run: | + NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + brew install autoconf + brew install automake - name: Get resource of Swig if: matrix.os == 'macos-latest' run: | @@ -55,17 +61,12 @@ jobs: run: | cd ./swig-3.0.12/ ./Tools/pcre-build.sh - ./autogen.sh || true + ./autogen.sh ./configure make sudo make install cd .. rm -r ./swig-3.0.12 - - name: Install Homebrew for MacOs to install libomp which is the dependence of lightgbm - if: matrix.python-version == '3.11' - run: | - NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - brew install libomp - name: Install dependencies run: | python -m pip install --upgrade pip