Skip to content

Commit c57dc7b

Browse files
committed
Disable LTO for pull requests
1 parent 34884af commit c57dc7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-binaries.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ jobs:
156156
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
157157
fi
158158
159-
echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
160-
echo "build-flang=$build_flang" >> $GITHUB_OUTPUT
161159
case "${{ inputs.runs-on }}" in
162160
ubuntu-22.04*)
163161
build_runs_on="depot-${{ inputs.runs-on }}-16"
@@ -166,6 +164,7 @@ jobs:
166164
macos-13)
167165
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
168166
build_runs_on="${{ inputs.runs-on }}"
167+
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
169168
else
170169
build_runs_on="macos-13-large"
171170
fi
@@ -174,6 +173,7 @@ jobs:
174173
macos-14)
175174
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
176175
build_runs_on="${{ inputs.runs-on }}"
176+
target_cmake_flags="$target_cmake_flags -DLLVM_RELEASE_ENABLE_LTO=OFF"
177177
else
178178
build_runs_on="depot-macos-14"
179179
fi
@@ -184,6 +184,8 @@ jobs:
184184
build_runs_on=$test_runs_on
185185
;;
186186
esac
187+
echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
188+
echo "build-flang=$build_flang" >> $GITHUB_OUTPUT
187189
echo "build-runs-on=$build_runs_on" >> $GITHUB_OUTPUT
188190
echo "test-runs-on=$test_runs_on" >> $GITHUB_OUTPUT
189191

0 commit comments

Comments
 (0)