From 38dd713105b261d75f69ab7c0957be995676b91e Mon Sep 17 00:00:00 2001 From: Bambooin Date: Thu, 14 Dec 2023 20:40:25 +0800 Subject: [PATCH] ci: fix sha256sum not found in macOS CI error in macOS: script/cache-hash.sh: line 18: sha256sum: command not found --- .github/workflows/commit-ci.yml | 5 +++++ .github/workflows/pull-request-ci.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml index 5d635078cc..ae7a9fdff4 100644 --- a/.github/workflows/commit-ci.yml +++ b/.github/workflows/commit-ci.yml @@ -25,6 +25,11 @@ jobs: echo ${GITHUB_REF#refs/*/} echo CI_BRANCH=${GITHUB_REF#refs/*/} >> $GITHUB_ENV + - name: Install coreutils macOS + if: startsWith(matrix.os, 'macOS') + run: | + brew install coreutils + - name: Calculate JNI cache hash id: cache-hash shell: bash diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml index 88a3ae03c0..9d5ba2a77b 100644 --- a/.github/workflows/pull-request-ci.yml +++ b/.github/workflows/pull-request-ci.yml @@ -32,6 +32,11 @@ jobs: echo ${GITHUB_REF#refs/*/} echo CI_BRANCH=${GITHUB_REF#refs/*/} >> $GITHUB_ENV + - name: Install coreutils macOS + if: startsWith(matrix.os, 'macOS') + run: | + brew install coreutils + - name: Calculate JNI cache hash id: cache-hash shell: bash