From 46fe9ba0f5d32c7bb5767486c3b21c69fbac7373 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 7 Jul 2023 23:43:46 +0900 Subject: [PATCH] macos: set configure options in the compsite action --- .github/actions/setup/macos/action.yml | 8 ++++++++ .github/workflows/macos.yml | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup/macos/action.yml b/.github/actions/setup/macos/action.yml index bc43dac0d98918..cfb456c2c033a3 100644 --- a/.github/actions/setup/macos/action.yml +++ b/.github/actions/setup/macos/action.yml @@ -15,3 +15,11 @@ runs: run: | brew upgrade --quiet brew install --quiet gmp libffi openssl@1.1 zlib autoconf automake libtool readline + + - name: Set ENV + shell: bash + run: | + for lib in openssl@1.1 readline; do + CONFIGURE_ARGS="${CONFIGURE_ARGS:+$CONFIGURE_ARGS }--with-${lib%@*}-dir=$(brew --prefix $lib)" + done + echo CONFIGURE_ARGS="${CONFIGURE_ARGS}" >> $GITHUB_ENV diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 8a2838f24dede4..ad06eaafcdd820 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -61,13 +61,6 @@ jobs: builddir: build makeup: true - - name: Set ENV - run: | - for lib in openssl@1.1 readline; do - CONFIGURE_ARGS="${CONFIGURE_ARGS:+$CONFIGURE_ARGS }--with-${lib%@*}-dir=$(brew --prefix $lib)" - done - echo CONFIGURE_ARGS="${CONFIGURE_ARGS}" >> $GITHUB_ENV - - name: Run configure run: ../src/configure -C --disable-install-doc