File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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')"
You can’t perform that action at this time.
0 commit comments