8324723: GHA: Upgrade some actions to avoid deprecated Node 16
Reviewed-by: sgehwolf, ihse
This commit is contained in:
parent
fe0eec7e20
commit
951b5f8ecb
4
.github/actions/do-build/action.yml
vendored
4
.github/actions/do-build/action.yml
vendored
@ -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'
|
||||||
|
2
.github/actions/get-bootjdk/action.yml
vendored
2
.github/actions/get-bootjdk/action.yml
vendored
@ -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 }}
|
||||||
|
4
.github/actions/get-bundles/action.yml
vendored
4
.github/actions/get-bundles/action.yml
vendored
@ -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
|
||||||
|
2
.github/actions/get-jtreg/action.yml
vendored
2
.github/actions/get-jtreg/action.yml
vendored
@ -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 }}
|
||||||
|
3
.github/actions/get-msys2/action.yml
vendored
3
.github/actions/get-msys2/action.yml
vendored
@ -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
|
||||||
|
2
.github/actions/upload-bundles/action.yml
vendored
2
.github/actions/upload-bundles/action.yml
vendored
@ -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
|
||||||
|
2
.github/workflows/build-cross-compile.yml
vendored
2
.github/workflows/build-cross-compile.yml
vendored
@ -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') }}
|
||||||
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -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"] }'
|
||||||
|
|
||||||
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user