From eeaa2aac116c8e69b9e5100e66e8b3c79b1abc3f Mon Sep 17 00:00:00 2001 From: "lvfei.lv" Date: Thu, 15 Aug 2024 17:00:16 +0800 Subject: [PATCH] [Misc] Add the step of downloading Jtreg in Actions Summary: CICD Testing: CI pipline Reviewers: lei.yul, sendaoYan Issue: https://github.com/dragonwell-project/dragonwell11/issues/858 --- .github/actions/get-jtreg/action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/actions/get-jtreg/action.yml b/.github/actions/get-jtreg/action.yml index ab0927919db..d3717894f0a 100644 --- a/.github/actions/get-jtreg/action.yml +++ b/.github/actions/get-jtreg/action.yml @@ -39,6 +39,15 @@ runs: with: var: JTREG_VERSION + - name: 'Cache for JTReg' + run: | + mkdir -p jtreg/installed + jtreg_ver=`echo "${{ steps.version.outputs.value }}" | sed 's/+/./g'` + curl -L -o jtreg.tar.gz https://compiler-tools.oss-cn-hangzhou.aliyuncs.com/jtreg/jtreg-${jtreg_ver}.tar.gz + tar xf jtreg.tar.gz -C jtreg/installed --strip-components=1 + rm -rf jtreg.tar.gz + shell: bash + - name: 'Check cache for JTReg' id: get-cached-jtreg uses: actions/cache@v4