83
83
USER_TOKEN : ${{ secrets.RELEASE_TASKS_USER_TOKEN }}
84
84
shell : bash
85
85
run : |
86
- ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user ${{ github.actor }} --user-token "$USER_TOKEN" check-permissions
86
+ ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user "$GITHUB_ACTOR" --user-token "$USER_TOKEN" check-permissions
87
87
88
88
- name : Collect Variables
89
89
id : vars
@@ -102,8 +102,8 @@ jobs:
102
102
release_version="$trimmed"
103
103
ref="llvmorg-$release_version"
104
104
else
105
- release_version="${{ (github.event_name == 'pull_request' && format('PR{0}', github.event.pull_request.number)) || 'CI'}}-${{ github.sha }} "
106
- ref=${{ github.sha }}
105
+ release_version="${{ (github.event_name == 'pull_request' && format('PR{0}', github.event.pull_request.number)) || 'CI'}}-$GITHUB_SHA "
106
+ ref="$GITHUB_SHA"
107
107
fi
108
108
if [ -n "${{ inputs.upload }}" ]; then
109
109
upload="${{ inputs.upload }}"
@@ -114,20 +114,20 @@ jobs:
114
114
echo "ref=$ref" >> $GITHUB_OUTPUT
115
115
echo "upload=$upload" >> $GITHUB_OUTPUT
116
116
117
- release_binary_basename="LLVM-$release_version-${{ runner.os }}-${{ runner.arch }} "
117
+ release_binary_basename="LLVM-$release_version-$RUNNER_OS-$RUNNER_ARCH "
118
118
echo "release-binary-basename=$release_binary_basename" >> $GITHUB_OUTPUT
119
119
echo "release-binary-filename=$release_binary_basename.tar.xz" >> $GITHUB_OUTPUT
120
120
121
121
# Detect necessary CMake flags
122
- target="${{ runner.os }}-${{ runner.arch }} "
122
+ target="$RUNNER_OS-$RUNNER_ARCH "
123
123
echo "enable-pgo=false" >> $GITHUB_OUTPUT
124
124
target_cmake_flags="-DLLVM_RELEASE_ENABLE_PGO=OFF"
125
125
# The macOS builds try to cross compile some libraries so we need to
126
126
# add extra CMake args to disable them.
127
127
# See https://github.com/llvm/llvm-project/issues/99767
128
- if [ "${{ runner.os }} " = "macOS" ]; then
128
+ if [ "$RUNNER_OS " = "macOS" ]; then
129
129
target_cmake_flags="$target_cmake_flags -DBOOTSTRAP_COMPILER_RT_ENABLE_IOS=OFF"
130
- if [ "${{ runner.arch }} " = "ARM64" ]; then
130
+ if [ "$RUNNER_ARCH " = "ARM64" ]; then
131
131
arches=arm64
132
132
else
133
133
arches=x86_64
@@ -137,7 +137,7 @@ jobs:
137
137
138
138
build_flang="true"
139
139
140
- if [ "${{ runner.os }} " = "Windows" ]; then
140
+ if [ "$RUNNER_OS " = "Windows" ]; then
141
141
# The build times out on Windows, so we need to disable LTO.
142
142
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
143
143
fi
0 commit comments