Skip to content
This repository was archived by the owner on Dec 20, 2019. It is now read-only.

Commit b96edf8

Browse files
committed
LDC: Tweak ownership & permissions of Azure CI tarballs
1 parent 7acff4f commit b96edf8

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.azure-pipelines/posix.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,21 @@ steps:
5656
artifactName=llvm-$ARTIFACT_ID-$CI_OS-x86_64$ASSERTS_SUFFIX
5757
mv install $artifactName
5858
mkdir artifacts
59-
XZ_OPT=-9 tar -cJf artifacts/$artifactName.tar.xz $artifactName
59+
chmod -R go=rX $artifactName
60+
if [ "$CI_OS" = "linux" ]; then
61+
XZ_OPT=-9 tar -cJf artifacts/$artifactName.tar.xz --owner=0 --group=0 $artifactName
62+
else
63+
sudo chown -R root:wheel $artifactName
64+
tar -cJf artifacts/$artifactName.tar.xz --options='compression-level=9' $artifactName
65+
fi
6066
displayName: Pack installation dir
6167
- script: |
6268
set -e
6369
cd ..
6470
if [[ "$CI_OS" = "linux" && "$LLVM_ENABLE_ASSERTIONS" = "OFF" ]]; then
6571
artifactName=llvm-$ARTIFACT_ID.src
66-
XZ_OPT=-9 tar -cJf artifacts/$artifactName.tar.xz --exclude-vcs --transform=s,${BUILD_SOURCESDIRECTORY:1},$artifactName, $BUILD_SOURCESDIRECTORY
72+
chmod -R go=rX $BUILD_SOURCESDIRECTORY
73+
XZ_OPT=-9 tar -cJf artifacts/$artifactName.tar.xz --exclude-vcs --owner=0 --group=0 --transform=s,${BUILD_SOURCESDIRECTORY:1},$artifactName, $BUILD_SOURCESDIRECTORY
6774
else
6875
echo 'Skipping'
6976
fi

projects/SPIRV-LLVM-Translator

0 commit comments

Comments
 (0)