File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,15 @@ jobs:
104
104
PKG_CONFIG_PATH : /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
105
105
shell : bash
106
106
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
107
114
cmake -G Ninja \
108
- -B build \
115
+ -B "$builddir" \
109
116
-S llvm \
110
117
-DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" \
111
118
-DCMAKE_BUILD_TYPE=Release \
@@ -114,7 +121,7 @@ jobs:
114
121
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
115
122
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
116
123
${{ inputs.extra_cmake_args }}
117
- ninja -C build '${{ inputs.build_target }}'
124
+ ninja -C "$builddir" '${{ inputs.build_target }}'
118
125
119
126
- name : Build and Test libclc
120
127
if : " !startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"
You can’t perform that action at this time.
0 commit comments