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