diff --git a/.github/workflows/check-publish.yml b/.github/workflows/check-publish.yml index 287fbd8..f4f9ffb 100644 --- a/.github/workflows/check-publish.yml +++ b/.github/workflows/check-publish.yml @@ -41,7 +41,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install etcd + - name: Install etcd for linux run: | ETCD_VER=v3.4.14 DOWNLOAD_URL=https://github.com/etcd-io/etcd/releases/download @@ -49,6 +49,18 @@ jobs: mkdir /tmp/etcd-download-test tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1 /tmp/etcd-download-test/etcd & + if: runner.os == 'Linux' + + - name: Install etcd for macos + run: | + ETCD_VER=v3.4.14 + DOWNLOAD_URL=https://github.com/etcd-io/etcd/releases/download + curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-darwin-amd64.zip -o /tmp/etcd-${ETCD_VER}-darwin-amd64.zip + mkdir /tmp/etcd-download-test + unzip /tmp/etcd-${ETCD_VER}-darwin-amd64.zip -d /tmp + mv /tmp/etcd-${ETCD_VER}-darwin-amd64/* /tmp/etcd-download-test + /tmp/etcd-download-test/etcd & + if: runner.os == 'macOS' - name: Install packages run: |