File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -105,14 +105,16 @@ jobs:
105
105
# This should be a no-op for non-mac OSes
106
106
PKG_CONFIG_PATH : /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
107
107
shell : bash
108
+ id : build-llvm
108
109
run : |
109
110
if [ "${{ runner.os }}" == "Linux" ]; then
110
111
builddir="/mnt/build/"
111
112
sudo mkdir -p $builddir
112
113
sudo chown `whoami`:`whoami` $builddir
113
114
else
114
- builddir=build
115
+ builddir="$(pwd)"/ build
115
116
fi
117
+ echo "llvm-builddir=$builddir" >> "$GITHUB_OUTPUT"
116
118
cmake -G Ninja \
117
119
-B "$builddir" \
118
120
-S llvm \
@@ -127,9 +129,11 @@ jobs:
127
129
128
130
- name : Build and Test libclc
129
131
if : " !startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"
132
+ env :
133
+ LLVM_BUILDDIR : ${{ steps.build-llvm.outputs.llvm-builddir }}
130
134
run : |
131
135
# Make sure all of LLVM libraries that llvm-config needs are built.
132
- ninja -C build
133
- cmake -G Ninja -S libclc -B libclc-build -DLLVM_DIR="$(pwd)"/build /lib/cmake/llvm -DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
136
+ ninja -C "$LLVM_BUILDDIR"
137
+ cmake -G Ninja -S libclc -B libclc-build -DLLVM_DIR="$LLVM_BUILDDIR" /lib/cmake/llvm -DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
134
138
ninja -C libclc-build
135
139
ninja -C libclc-build test
You can’t perform that action at this time.
0 commit comments