< prev index next >

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

Print this page

 48     - name: 'Get URL configuration'
 49       id: url
 50       uses: ./.github/actions/config
 51       with:
 52         var: ${{ steps.platform-prefix.outputs.value}}_BOOT_JDK_URL
 53 
 54     - name: 'Get SHA256 configuration'
 55       id: sha256
 56       uses: ./.github/actions/config
 57       with:
 58         var: ${{ steps.platform-prefix.outputs.value}}_BOOT_JDK_SHA256
 59 
 60     - name: 'Get file extension configuration'
 61       id: ext
 62       uses: ./.github/actions/config
 63       with:
 64         var: ${{ steps.platform-prefix.outputs.value}}_BOOT_JDK_EXT
 65 
 66     - name: 'Check cache for BootJDK'
 67       id: get-cached-bootjdk
 68       uses: actions/cache@v3
 69       with:
 70         path: bootjdk/jdk
 71         key: boot-jdk-${{ inputs.platform }}-${{ steps.sha256.outputs.value }}
 72 
 73       # macOS is missing sha256sum
 74     - name: 'Install sha256sum'
 75       run: |
 76         # Run Homebrew installation
 77         brew install coreutils
 78       shell: bash
 79       if: steps.get-cached-bootjdk.outputs.cache-hit != 'true' && runner.os == 'macOS'
 80 
 81     - name: 'Download BootJDK'
 82       run: |
 83         # Download BootJDK and verify checksum
 84         mkdir -p bootjdk/jdk
 85         mkdir -p bootjdk/unpacked
 86         wget --progress=dot:mega -O bootjdk/jdk.${{ steps.ext.outputs.value }} '${{ steps.url.outputs.value }}'
 87         echo '${{ steps.sha256.outputs.value }} bootjdk/jdk.${{ steps.ext.outputs.value }}' | sha256sum -c >/dev/null -
 88       shell: bash

 48     - name: 'Get URL configuration'
 49       id: url
 50       uses: ./.github/actions/config
 51       with:
 52         var: ${{ steps.platform-prefix.outputs.value}}_BOOT_JDK_URL
 53 
 54     - name: 'Get SHA256 configuration'
 55       id: sha256
 56       uses: ./.github/actions/config
 57       with:
 58         var: ${{ steps.platform-prefix.outputs.value}}_BOOT_JDK_SHA256
 59 
 60     - name: 'Get file extension configuration'
 61       id: ext
 62       uses: ./.github/actions/config
 63       with:
 64         var: ${{ steps.platform-prefix.outputs.value}}_BOOT_JDK_EXT
 65 
 66     - name: 'Check cache for BootJDK'
 67       id: get-cached-bootjdk
 68       uses: actions/cache@v4
 69       with:
 70         path: bootjdk/jdk
 71         key: boot-jdk-${{ inputs.platform }}-${{ steps.sha256.outputs.value }}
 72 
 73       # macOS is missing sha256sum
 74     - name: 'Install sha256sum'
 75       run: |
 76         # Run Homebrew installation
 77         brew install coreutils
 78       shell: bash
 79       if: steps.get-cached-bootjdk.outputs.cache-hit != 'true' && runner.os == 'macOS'
 80 
 81     - name: 'Download BootJDK'
 82       run: |
 83         # Download BootJDK and verify checksum
 84         mkdir -p bootjdk/jdk
 85         mkdir -p bootjdk/unpacked
 86         wget --progress=dot:mega -O bootjdk/jdk.${{ steps.ext.outputs.value }} '${{ steps.url.outputs.value }}'
 87         echo '${{ steps.sha256.outputs.value }} bootjdk/jdk.${{ steps.ext.outputs.value }}' | sha256sum -c >/dev/null -
 88       shell: bash
< prev index next >