From 079a5586429c53d47ce8b826ce4c2b2b1048dc58 Mon Sep 17 00:00:00 2001 From: mu <59917266+4eUeP@users.noreply.github.com> Date: Thu, 9 May 2024 14:26:57 +0800 Subject: [PATCH] ci: fix on latest macos --- .github/workflows/ci.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ed86dae..0b5e04e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,8 +44,14 @@ jobs: - name: Setup zookeeper server on osx if: runner.os == 'macOS' run: | - sed -i'.bak' -e "s/^clientPort=2181$/clientPort=2182/g" /usr/local/etc/zookeeper/zoo.cfg - cat /usr/local/etc/zookeeper/zoo.cfg + # https://docs.brew.sh/Installation + if [ "$(uname -m)" == "arm64" ]; then + sed -i'.bak' -e "s/^clientPort=2181$/clientPort=2182/g" /opt/homebrew/etc/zookeeper/zoo.cfg + cat /opt/homebrew/etc/zookeeper/zoo.cfg + else + sed -i'.bak' -e "s/^clientPort=2181$/clientPort=2182/g" /usr/local/etc/zookeeper/zoo.cfg + cat /usr/local/etc/zookeeper/zoo.cfg + fi zkServer start - name: remove xcode devtools on osx