Skip to content

Commit 9e2e194

Browse files
committed
[workflows] Use /mnt as the build directory on Linux (#80583)
There is more space available on /mnt (~56G) than on / (~30G), and we are starting to see some of the CI jobs run out of disk space on Linux. (cherry picked from commit 1a64260)
1 parent 88d4f1a commit 9e2e194

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/llvm-project-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,15 @@ jobs:
105105
PKG_CONFIG_PATH: /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
106106
shell: bash
107107
run: |
108+
if [ "${{ runner.os }}" == "Linux" ]; then
109+
builddir="/mnt/build/"
110+
sudo mkdir -p $builddir
111+
sudo chown `whoami`:`whoami` $builddir
112+
else
113+
builddir=build
114+
fi
108115
cmake -G Ninja \
109-
-B build \
116+
-B "$builddir" \
110117
-S llvm \
111118
-DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" \
112119
-DCMAKE_BUILD_TYPE=Release \
@@ -115,7 +122,7 @@ jobs:
115122
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
116123
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
117124
${{ inputs.extra_cmake_args }}
118-
ninja -C build '${{ inputs.build_target }}'
125+
ninja -C "$builddir" '${{ inputs.build_target }}'
119126
120127
- name: Build and Test libclc
121128
if: "!startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"

0 commit comments

Comments
 (0)