aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2024-02-05 09:46:19 -0800
committerGitHub <noreply@github.com>2024-02-05 09:46:19 -0800
commit1a6426067fb33a8a789978f6e229108787a041be (patch)
tree59b8d01a01fe8d35a61ab508a3f1aa28111633a6
parent95fe47ca7e99d999108705640e49075f4c5f39a7 (diff)
downloadllvm-1a6426067fb33a8a789978f6e229108787a041be.zip
llvm-1a6426067fb33a8a789978f6e229108787a041be.tar.gz
llvm-1a6426067fb33a8a789978f6e229108787a041be.tar.bz2
[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.
-rw-r--r--.github/workflows/llvm-project-tests.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/llvm-project-tests.yml b/.github/workflows/llvm-project-tests.yml
index 79a382b..494263b 100644
--- a/.github/workflows/llvm-project-tests.yml
+++ b/.github/workflows/llvm-project-tests.yml
@@ -104,8 +104,15 @@ jobs:
PKG_CONFIG_PATH: /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
shell: bash
run: |
+ if [ "${{ runner.os }}" == "Linux" ]; then
+ builddir="/mnt/build/"
+ sudo mkdir -p $builddir
+ sudo chown `whoami`:`whoami` $builddir
+ else
+ builddir=build
+ fi
cmake -G Ninja \
- -B build \
+ -B "$builddir" \
-S llvm \
-DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" \
-DCMAKE_BUILD_TYPE=Release \
@@ -114,7 +121,7 @@ jobs:
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
${{ inputs.extra_cmake_args }}
- ninja -C build '${{ inputs.build_target }}'
+ ninja -C "$builddir" '${{ inputs.build_target }}'
- name: Build and Test libclc
if: "!startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"