Skip to content

Commit

Permalink
[LDC] CI: Fix source artifact, enable parallelized compression on Posix
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Jun 3, 2024
1 parent d0ce14c commit 45b4a48
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/actions/3-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ runs:
chmod -R go=rX $artifactName
if [[ '${{ runner.os }}' == macOS ]]; then
sudo chown -R root:wheel $artifactName
tar -cf - $artifactName | 7za a artifacts/$artifactName.tar.xz -si -txz -mx9
tar -cf - $artifactName | 7za a artifacts/$artifactName.tar.xz -si -txz -mx9 -mmt$(sysctl -n hw.logicalcpu)
else
tar -cf - --owner=0 --group=0 $artifactName | 7za a artifacts/$artifactName.tar.xz -si -txz -mx9
tar -cf - --owner=0 --group=0 $artifactName | 7za a artifacts/$artifactName.tar.xz -si -txz -mx9 -mmt$(nproc)
fi
fi
Expand All @@ -74,13 +74,14 @@ runs:
run: |
set -euxo pipefail
git clean -dffx
git submodule foreach git clean -dffx
artifactName="llvm-$ARTIFACT_ID.src"
# just the LLVM src dir + bolt + compiler-rt + lld
mv compiler-rt llvm/projects
mv bolt lld llvm/tools
chmod -R go=rX llvm
tar -cf - --exclude-vcs --owner=0 --group=0 --transform="s,^llvm,$artifactName," llvm | 7za a ../artifacts/$artifactName.tar.xz -si -txz -mx9
mkdir $artifactName
# only keep some subdirs (note: libunwind required by lld, for `mach-o/compact_unwind_encoding.h` include)
for dir in bolt cmake compiler-rt libunwind lld llvm; do
mv $dir $artifactName/
done
chmod -R go=rX $artifactName
tar -cf - --exclude-vcs --owner=0 --group=0 $artifactName | 7za a ../artifacts/$artifactName.tar.xz -si -txz -mx9 -mmt$(nproc)
- name: 'Move artifacts dir for uploading'
shell: bash
Expand Down

0 comments on commit 45b4a48

Please sign in to comment.