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