8324723: GHA: Upgrade some actions to avoid deprecated Node 16

Reviewed-by: sgehwolf, ihse
This commit is contained in:
Aleksey Shipilev 2024-01-29 15:13:44 +00:00
parent fe0eec7e20
commit 951b5f8ecb
9 changed files with 12 additions and 13 deletions

View File

@ -66,7 +66,7 @@ runs:
shell: bash shell: bash
- name: 'Upload build logs' - name: 'Upload build logs'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: failure-logs-${{ inputs.platform }}${{ inputs.debug-suffix }} name: failure-logs-${{ inputs.platform }}${{ inputs.debug-suffix }}
path: failure-logs path: failure-logs
@ -74,7 +74,7 @@ runs:
# This is the best way I found to abort the job with an error message # This is the best way I found to abort the job with an error message
- name: 'Notify about build failures' - name: 'Notify about build failures'
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
script: core.setFailed('Build failed. See summary for details.') script: core.setFailed('Build failed. See summary for details.')
if: steps.check.outputs.failure == 'true' if: steps.check.outputs.failure == 'true'

View File

@ -65,7 +65,7 @@ runs:
- name: 'Check cache for BootJDK' - name: 'Check cache for BootJDK'
id: get-cached-bootjdk id: get-cached-bootjdk
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: bootjdk/jdk path: bootjdk/jdk
key: boot-jdk-${{ inputs.platform }}-${{ steps.sha256.outputs.value }} key: boot-jdk-${{ inputs.platform }}-${{ steps.sha256.outputs.value }}

View File

@ -48,14 +48,14 @@ runs:
steps: steps:
- name: 'Download bundles artifact' - name: 'Download bundles artifact'
id: download-bundles id: download-bundles
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }} name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
path: bundles path: bundles
continue-on-error: true continue-on-error: true
- name: 'Download bundles artifact (retry)' - name: 'Download bundles artifact (retry)'
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }} name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
path: bundles path: bundles

View File

@ -41,7 +41,7 @@ runs:
- name: 'Check cache for JTReg' - name: 'Check cache for JTReg'
id: get-cached-jtreg id: get-cached-jtreg
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: jtreg/installed path: jtreg/installed
key: jtreg-${{ steps.version.outputs.value }} key: jtreg-${{ steps.version.outputs.value }}

View File

@ -30,8 +30,7 @@ runs:
using: composite using: composite
steps: steps:
- name: 'Install MSYS2' - name: 'Install MSYS2'
# use a specific release of msys2/setup-msys2 to prevent jtreg build failures on newer release uses: msys2/setup-msys2@v2.22.0
uses: msys2/setup-msys2@7efe20baefed56359985e327d329042cde2434ff
with: with:
install: 'autoconf tar unzip zip make' install: 'autoconf tar unzip zip make'
path-type: minimal path-type: minimal

View File

@ -69,7 +69,7 @@ runs:
shell: bash shell: bash
- name: 'Upload bundles artifact' - name: 'Upload bundles artifact'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }} name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
path: bundles path: bundles

View File

@ -120,7 +120,7 @@ jobs:
- name: 'Check cache for sysroot' - name: 'Check cache for sysroot'
id: get-cached-sysroot id: get-cached-sysroot
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: sysroot path: sysroot
key: sysroot-${{ matrix.debian-arch }}-${{ hashFiles('./.github/workflows/build-cross-compile.yml') }} key: sysroot-${{ matrix.debian-arch }}-${{ hashFiles('./.github/workflows/build-cross-compile.yml') }}

View File

@ -357,7 +357,7 @@ jobs:
# Hack to get hold of the api environment variables that are only defined for actions # Hack to get hold of the api environment variables that are only defined for actions
- name: 'Get API configuration' - name: 'Get API configuration'
id: api id: api
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }' script: 'return { url: process.env["ACTIONS_RUNTIME_URL"], token: process.env["ACTIONS_RUNTIME_TOKEN"] }'

View File

@ -206,7 +206,7 @@ jobs:
if: always() if: always()
- name: 'Upload test results' - name: 'Upload test results'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
path: results path: results
name: ${{ steps.package.outputs.artifact-name }} name: ${{ steps.package.outputs.artifact-name }}
@ -214,7 +214,7 @@ jobs:
# This is the best way I found to abort the job with an error message # This is the best way I found to abort the job with an error message
- name: 'Notify about test failures' - name: 'Notify about test failures'
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
script: core.setFailed('${{ steps.run-tests.outputs.error-message }}') script: core.setFailed('${{ steps.run-tests.outputs.error-message }}')
if: steps.run-tests.outputs.failure == 'true' if: steps.run-tests.outputs.failure == 'true'