From 48db7ceb5f213e08383c8cae529eccb5a46476fa Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Sat, 7 May 2022 22:30:50 +0800 Subject: [PATCH] fix: set AUTO_INSTALL_BUILD_DEPS for CI --- .github/workflows/build_packages.yaml | 2 ++ .github/workflows/build_slim_packages.yaml | 4 ++++ scripts/prepare-build-deps.sh | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_packages.yaml b/.github/workflows/build_packages.yaml index cc02aba6d..bc7478ad1 100644 --- a/.github/workflows/build_packages.yaml +++ b/.github/workflows/build_packages.yaml @@ -167,6 +167,8 @@ jobs: - name: build working-directory: source + env: + AUTO_INSTALL_BUILD_DEPS: 1 run: | . $HOME/.kerl/${{ matrix.otp }}/activate make ensure-rebar3 diff --git a/.github/workflows/build_slim_packages.yaml b/.github/workflows/build_slim_packages.yaml index f05682daa..c58561663 100644 --- a/.github/workflows/build_slim_packages.yaml +++ b/.github/workflows/build_slim_packages.yaml @@ -172,6 +172,8 @@ jobs: kerl install ${{ matrix.otp }} $HOME/.kerl/${{ matrix.otp }} - name: Get deps git refs for cache id: deps-refs + env: + AUTO_INSTALL_BUILD_DEPS: 1 run: | . $HOME/.kerl/${{ matrix.otp }}/activate make ensure-rebar3 @@ -184,6 +186,8 @@ jobs: path: _build/default/lib/quicer/ key: ${{ matrix.macos }}-${{ matrix.otp }}-macos-${{ steps.deps-refs.outputs.DEP_QUICER_REF }} - name: build ${{ matrix.profile }} + env: + AUTO_INSTALL_BUILD_DEPS: 1 run: | . $HOME/.kerl/${{ matrix.otp }}/activate make ensure-rebar3 diff --git a/scripts/prepare-build-deps.sh b/scripts/prepare-build-deps.sh index e1ccdd8b3..12daa01bc 100755 --- a/scripts/prepare-build-deps.sh +++ b/scripts/prepare-build-deps.sh @@ -4,8 +4,8 @@ set -euo pipefail AUTO_INSTALL_BUILD_DEPS="${AUTO_INSTALL_BUILD_DEPS:-0}" -required_packages_mac_osx="freetds unixodbc" -required_cmds_mac_osx="curl zip unzip autoconf automake bison cmake openssl" +required_packages_mac_osx="freetds unixodbc bison" +required_cmds_mac_osx="curl zip unzip autoconf automake cmake openssl" dependency_missing() { echo "error: $1 is not found in the system"