mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8295714: GHA ::set-output is deprecated and will be removed
Reviewed-by: shade
This commit is contained in:
parent
dfd2d83144
commit
b35922be6d
11 changed files with 28 additions and 27 deletions
2
.github/actions/config/action.yml
vendored
2
.github/actions/config/action.yml
vendored
|
@ -42,5 +42,5 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
# Extract value from configuration file
|
# Extract value from configuration file
|
||||||
value="$(grep -h ${{ inputs.var }}= make/conf/github-actions.conf | cut -d '=' -f 2-)"
|
value="$(grep -h ${{ inputs.var }}= make/conf/github-actions.conf | cut -d '=' -f 2-)"
|
||||||
echo "::set-output name=value::$value"
|
echo "value=$value" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
2
.github/actions/do-build/action.yml
vendored
2
.github/actions/do-build/action.yml
vendored
|
@ -61,7 +61,7 @@ runs:
|
||||||
$build_dir/make-support/failure-summary.log \
|
$build_dir/make-support/failure-summary.log \
|
||||||
$build_dir/make-support/failure-logs/* \
|
$build_dir/make-support/failure-logs/* \
|
||||||
failure-logs/ 2> /dev/null || true
|
failure-logs/ 2> /dev/null || true
|
||||||
echo '::set-output name=failure::true'
|
echo 'failure=true' >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
4
.github/actions/get-bootjdk/action.yml
vendored
4
.github/actions/get-bootjdk/action.yml
vendored
|
@ -42,7 +42,7 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
# Convert platform name to upper case
|
# Convert platform name to upper case
|
||||||
platform_prefix="$(echo ${{ inputs.platform }} | tr [a-z-] [A-Z_])"
|
platform_prefix="$(echo ${{ inputs.platform }} | tr [a-z-] [A-Z_])"
|
||||||
echo "::set-output name=value::$platform_prefix"
|
echo "value=$platform_prefix" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: 'Get URL configuration'
|
- name: 'Get URL configuration'
|
||||||
|
@ -105,5 +105,5 @@ runs:
|
||||||
id: path-name
|
id: path-name
|
||||||
run: |
|
run: |
|
||||||
# Export the path
|
# Export the path
|
||||||
echo '::set-output name=path::bootjdk/jdk'
|
echo 'path=bootjdk/jdk' >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
6
.github/actions/get-bundles/action.yml
vendored
6
.github/actions/get-bundles/action.yml
vendored
|
@ -103,7 +103,7 @@ runs:
|
||||||
tests_dir="$(cygpath $tests_dir)"
|
tests_dir="$(cygpath $tests_dir)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=jdk::$jdk_dir"
|
echo "jdk=$jdk_dir" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=symbols::$symbols_dir"
|
echo "symbols=$symbols_dir" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=tests::$tests_dir"
|
echo "tests=$tests_dir" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
2
.github/actions/get-gtest/action.yml
vendored
2
.github/actions/get-gtest/action.yml
vendored
|
@ -50,5 +50,5 @@ runs:
|
||||||
id: path-name
|
id: path-name
|
||||||
run: |
|
run: |
|
||||||
# Export the path
|
# Export the path
|
||||||
echo '::set-output name=path::gtest'
|
echo 'path=gtest' >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
2
.github/actions/get-jtreg/action.yml
vendored
2
.github/actions/get-jtreg/action.yml
vendored
|
@ -68,5 +68,5 @@ runs:
|
||||||
id: path-name
|
id: path-name
|
||||||
run: |
|
run: |
|
||||||
# Export the path
|
# Export the path
|
||||||
echo '::set-output name=path::jtreg/installed'
|
echo 'path=jtreg/installed' >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
4
.github/actions/upload-bundles/action.yml
vendored
4
.github/actions/upload-bundles/action.yml
vendored
|
@ -62,9 +62,9 @@ runs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$symbols_bundle$tests_bundle" != "" ]]; then
|
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$symbols_bundle$tests_bundle" != "" ]]; then
|
||||||
echo '::set-output name=bundles-found::true'
|
echo 'bundles-found=true' >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo '::set-output name=bundles-found::false'
|
echo 'bundles-found=false' >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
7
.github/scripts/gen-test-summary.sh
vendored
7
.github/scripts/gen-test-summary.sh
vendored
|
@ -25,6 +25,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
GITHUB_STEP_SUMMARY="$1"
|
GITHUB_STEP_SUMMARY="$1"
|
||||||
|
GITHUB_OUTPUT="$2"
|
||||||
|
|
||||||
test_suite_name=$(cat build/run-test-prebuilt/test-support/test-last-ids.txt)
|
test_suite_name=$(cat build/run-test-prebuilt/test-support/test-last-ids.txt)
|
||||||
results_dir=build/run-test-prebuilt/test-results/$test_suite_name/text
|
results_dir=build/run-test-prebuilt/test-results/$test_suite_name/text
|
||||||
|
@ -41,12 +42,12 @@ error_count=$(echo $errors | wc -w || true)
|
||||||
|
|
||||||
if [[ "$failures" = "" && "$errors" = "" ]]; then
|
if [[ "$failures" = "" && "$errors" = "" ]]; then
|
||||||
# We know something went wrong, but not what
|
# We know something went wrong, but not what
|
||||||
echo '::set-output name=error-message::Unspecified test suite failure. Please see log for job for details.'
|
echo 'error-message=Unspecified test suite failure. Please see log for job for details.' >> $GITHUB_OUTPUT
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo '::set-output name=failure::true'
|
echo 'failure=true' >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=error-message::Test run reported $failure_count test failure(s) and $error_count error(s). See summary for details."
|
echo "error-message=Test run reported $failure_count test failure(s) and $error_count error(s). See summary for details." >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
echo '### :boom: Test failures summary' >> $GITHUB_STEP_SUMMARY
|
echo '### :boom: Test failures summary' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
|
2
.github/workflows/build-linux.yml
vendored
2
.github/workflows/build-linux.yml
vendored
|
@ -102,7 +102,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# Set a proper suffix for packages if using a different architecture
|
# Set a proper suffix for packages if using a different architecture
|
||||||
if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
|
if [[ '${{ inputs.apt-architecture }}' != '' ]]; then
|
||||||
echo '::set-output name=suffix:::${{ inputs.apt-architecture }}'
|
echo 'suffix=:${{ inputs.apt-architecture }}' >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Upgrading apt to solve libc6 installation bugs, see JDK-8260460.
|
# Upgrading apt to solve libc6 installation bugs, see JDK-8260460.
|
||||||
|
|
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
@ -110,14 +110,14 @@ jobs:
|
||||||
echo 'false'
|
echo 'false'
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "::set-output name=linux-x64::$(check_platform linux-x64 linux x64)"
|
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=linux-x86::$(check_platform linux-x86 linux x86)"
|
echo "linux-x86=$(check_platform linux-x86 linux x86)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=linux-x64-variants::$(check_platform linux-x64-variants variants)"
|
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=linux-cross-compile::$(check_platform linux-cross-compile cross-compile)"
|
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=macos-x64::$(check_platform macos-x64 macos x64)"
|
echo "macos-x64=$(check_platform macos-x64 macos x64)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=macos-aarch64::$(check_platform macos-aarch64 macos aarch64)"
|
echo "macos-aarch64=$(check_platform macos-aarch64 macos aarch64)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=windows-x64::$(check_platform windows-x64 windows x64)"
|
echo "windows-x64=$(check_platform windows-x64 windows x64)" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=windows-aarch64::$(check_platform windows-aarch64 windows aarch64)"
|
echo "windows-aarch64=$(check_platform windows-aarch64 windows aarch64)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
###
|
###
|
||||||
### Build jobs
|
### Build jobs
|
||||||
|
|
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -138,9 +138,9 @@ jobs:
|
||||||
# We need a minimal PATH on Windows
|
# We need a minimal PATH on Windows
|
||||||
# Set PATH to "", so just GITHUB_PATH is included
|
# Set PATH to "", so just GITHUB_PATH is included
|
||||||
if [[ '${{ runner.os }}' == 'Windows' ]]; then
|
if [[ '${{ runner.os }}' == 'Windows' ]]; then
|
||||||
echo "::set-output name=value::"
|
echo "value=" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "::set-output name=value::$PATH"
|
echo "value=$PATH" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 'Run tests'
|
- name: 'Run tests'
|
||||||
|
@ -154,7 +154,7 @@ jobs:
|
||||||
SYMBOLS_IMAGE_DIR=${{ steps.bundles.outputs.symbols-path }}
|
SYMBOLS_IMAGE_DIR=${{ steps.bundles.outputs.symbols-path }}
|
||||||
TEST_IMAGE_DIR=${{ steps.bundles.outputs.tests-path }}
|
TEST_IMAGE_DIR=${{ steps.bundles.outputs.tests-path }}
|
||||||
JTREG='JAVA_OPTIONS=-XX:-CreateCoredumpOnCrash;VERBOSE=fail,error,time;KEYWORDS=!headful'
|
JTREG='JAVA_OPTIONS=-XX:-CreateCoredumpOnCrash;VERBOSE=fail,error,time;KEYWORDS=!headful'
|
||||||
&& bash ./.github/scripts/gen-test-summary.sh "$GITHUB_STEP_SUMMARY"
|
&& bash ./.github/scripts/gen-test-summary.sh "$GITHUB_STEP_SUMMARY" "$GITHUB_OUTPUT"
|
||||||
env:
|
env:
|
||||||
PATH: ${{ steps.path.outputs.value }}
|
PATH: ${{ steps.path.outputs.value }}
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
artifact_name="results-${{ inputs.platform }}-$(echo ${{ matrix.test-name }} | tr '/ ' '__')"
|
artifact_name="results-${{ inputs.platform }}-$(echo ${{ matrix.test-name }} | tr '/ ' '__')"
|
||||||
echo "::set-output name=artifact-name::$artifact_name"
|
echo "artifact-name=$artifact_name" >> $GITHUB_OUTPUT
|
||||||
if: always()
|
if: always()
|
||||||
|
|
||||||
- name: 'Upload test results'
|
- name: 'Upload test results'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue