Aias00 commented on code in PR #4119:
URL: https://github.com/apache/hertzbeat/pull/4119#discussion_r3083523233
##########
script/ci/github-actions/setup-deps/action.yml:
##########
@@ -26,15 +26,28 @@ runs:
with:
distribution: "zulu"
java-version: 25
+ cache: maven
+
+ - name: Cache mvnd
+ id: mvnd-cache
+ uses: actions/cache@v4
+ with:
+ path: ~/.local/mvnd
+ key: ${{ runner.os }}-${{ runner.arch }}-mvnd-2.0.0-rc-3
- name: Install mvnd
+ if: steps.mvnd-cache.outputs.cache-hit != 'true'
shell: bash
run: |
MVND_VERSION=2.0.0-rc-3
curl -sL
https://dlcdn.apache.org/maven/mvnd/${MVND_VERSION}/maven-mvnd-${MVND_VERSION}-linux-amd64.zip
-o mvnd.zip
unzip -q mvnd.zip
mkdir -p $HOME/.local
mv maven-mvnd-${MVND_VERSION}-linux-amd64 $HOME/.local/mvnd
Review Comment:
Fixed in 06d57f1416. The shared action now fails fast unless the runner is
Linux/X64, and the mvnd cache key is pinned to the actual linux-amd64 artifact
that gets downloaded and extracted.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]