Skip to content

Commit 3239179

Browse files
committed
ci: fix MTL DESTDIR - restore meson-logs ownership after build.sh sudo install
1 parent e0b4667 commit 3239179

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/actions/environment-check/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,10 @@ runs:
151151
fi
152152
cd "$MTL_SOURCE"
153153
./build.sh
154-
# Capture MTL installables via DESTDIR before sudo install (build dir still runner-owned)
154+
# build.sh runs sudo ninja install internally, leaving meson-logs owned by root.
155+
# Restore runner ownership so the unprivileged DESTDIR capture can write install-log.txt.
156+
sudo chown -R "$(id -u):$(id -g)" "$MTL_SOURCE/build/meson-logs"
155157
DESTDIR="$RUNNER_TEMP/dvledtx-deps" ninja -C "$MTL_SOURCE/build" install
156-
sudo ninja -C "$MTL_SOURCE/build" install
157158
sudo ldconfig
158159
echo " MTL installed: $(pkg-config --modversion mtl)"
159160

0 commit comments

Comments
 (0)