Skip to content

Commit 1a64260

Browse files
authored
[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.
1 parent 95fe47c commit 1a64260

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
@@ -104,8 +104,15 @@ jobs:
104104
PKG_CONFIG_PATH: /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
105105
shell: bash
106106
run: |
107+
if [ "${{ runner.os }}" == "Linux" ]; then
108+
builddir="/mnt/build/"
109+
sudo mkdir -p $builddir
110+
sudo chown `whoami`:`whoami` $builddir
111+
else
112+
builddir=build
113+
fi
107114
cmake -G Ninja \
108-
-B build \
115+
-B "$builddir" \
109116
-S llvm \
110117
-DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" \
111118
-DCMAKE_BUILD_TYPE=Release \
@@ -114,7 +121,7 @@ jobs:
114121
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
115122
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
116123
${{ inputs.extra_cmake_args }}
117-
ninja -C build '${{ inputs.build_target }}'
124+
ninja -C "$builddir" '${{ inputs.build_target }}'
118125
119126
- name: Build and Test libclc
120127
if: "!startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"

0 commit comments

Comments
 (0)