Skip to content

Commit 704feea

Browse files
committed
Upload CMake configuration on failure
1 parent 7c2cf4f commit 704feea

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,17 @@ jobs:
149149
if: steps.cache.outputs.cache-hit != 'true'
150150
run: |
151151
cmake --build build --parallel -t llvm-package
152+
- name: Upload CMake Output
153+
uses: actions/upload-artifact@v4
154+
if: failure()
155+
with:
156+
name: cmake-output-llvm-${{ matrix.target.name }}
157+
path: |
158+
build/llvm-prefix/src/llvm-build/CMakeCache.txt
159+
build/llvm-prefix/src/llvm-build/CMakeFiles/CMakeConfigureLog.yaml
152160
- name: Build compiler-rt
153161
if: ${{ matrix.target.name == 'x86_64-unknown-linux-gnu' && steps.cache.outputs.cache-hit != 'true' }}
154162
run: cmake --build build --parallel -t compiler-rt-package
155-
- name: List files
156-
run: ls build
157163
- name: Upload built llvm
158164
uses: actions/upload-artifact@v4
159165
with:

0 commit comments

Comments
 (0)