< prev index next >

.github/actions/get-jtreg/action.yml

Print this page

24 #
25 
26 name: 'Get JTReg'
27 description: 'Download JTReg from cache or source location'
28 outputs:
29   path:
30     description: 'Path to the installed JTReg'
31     value: ${{ steps.path-name.outputs.path }}
32 
33 runs:
34   using: composite
35   steps:
36     - name: 'Get JTReg version configuration'
37       id: version
38       uses: ./.github/actions/config
39       with:
40         var: JTREG_VERSION
41 
42     - name: 'Check cache for JTReg'
43       id: get-cached-jtreg
44       uses: actions/cache@v3
45       with:
46         path: jtreg/installed
47         key: jtreg-${{ steps.version.outputs.value }}
48 
49     - name: 'Checkout the JTReg source'
50       uses: actions/checkout@v4
51       with:
52         repository: openjdk/jtreg
53         ref: jtreg-${{ steps.version.outputs.value }}
54         path: jtreg/src
55       if: steps.get-cached-jtreg.outputs.cache-hit != 'true'
56 
57     - name: 'Build JTReg'
58       run: |
59         # If runner architecture is x64 set JAVA_HOME_17_X64 otherwise set to JAVA_HOME_17_arm64
60         if [[ '${{ runner.arch }}' == 'X64' ]]; then
61           JDK="$JAVA_HOME_17_X64"
62         else
63           JDK="$JAVA_HOME_17_arm64"
64         fi

24 #
25 
26 name: 'Get JTReg'
27 description: 'Download JTReg from cache or source location'
28 outputs:
29   path:
30     description: 'Path to the installed JTReg'
31     value: ${{ steps.path-name.outputs.path }}
32 
33 runs:
34   using: composite
35   steps:
36     - name: 'Get JTReg version configuration'
37       id: version
38       uses: ./.github/actions/config
39       with:
40         var: JTREG_VERSION
41 
42     - name: 'Check cache for JTReg'
43       id: get-cached-jtreg
44       uses: actions/cache@v4
45       with:
46         path: jtreg/installed
47         key: jtreg-${{ steps.version.outputs.value }}
48 
49     - name: 'Checkout the JTReg source'
50       uses: actions/checkout@v4
51       with:
52         repository: openjdk/jtreg
53         ref: jtreg-${{ steps.version.outputs.value }}
54         path: jtreg/src
55       if: steps.get-cached-jtreg.outputs.cache-hit != 'true'
56 
57     - name: 'Build JTReg'
58       run: |
59         # If runner architecture is x64 set JAVA_HOME_17_X64 otherwise set to JAVA_HOME_17_arm64
60         if [[ '${{ runner.arch }}' == 'X64' ]]; then
61           JDK="$JAVA_HOME_17_X64"
62         else
63           JDK="$JAVA_HOME_17_arm64"
64         fi
< prev index next >