Skip to content

Commit

Permalink
Attempt to fix asset sizes with more compression
Browse files Browse the repository at this point in the history
  • Loading branch information
ob committed Aug 23, 2019
1 parent 79b1c59 commit b1bd256
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
12 changes: 9 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
trigger:
- master

pr:
autoCancel: true
branches:
include:
- master

jobs:
- job: macOS
timeoutInMinutes: 360
Expand All @@ -18,7 +24,7 @@ jobs:
vmImage: 'macOS-10.14'
demands: xcode
steps:
- script: 'brew install ninja cmake pigz'
- script: 'brew install ninja cmake lrzip'
displayName: 'Installing build dependencies'
- script: |
./clone.sh
Expand All @@ -37,7 +43,7 @@ jobs:
target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit
tagSource: 'manual' # Required when action == Create# Options: auto, manual
tag: 'swift-5.0.1-RELEASE-$(Build.BuildNumber)'
assets: 'release/*.tar.gz'
assets: 'release/*'
releaseNotesSource: 'file' # Optional. Options: file, input
releaseNotesFile: 'release/checksums.md' # Optional
releaseNotesFile: 'checksums.md' # Optional

19 changes: 9 additions & 10 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ PACKAGES=(
swift
)

TARBALLS=()
for package in ${PACKAGES[@]}
do
TB=${package}-${OS}-${CPU}.tar.gz
tar -c $V -f - \
-C $BUILD --exclude '*.o' ${package}-${OS}-${CPU} \
| pigz -9 > $RELEASE/$TB
TARBALLS+=( $TB )
tar -c $V -f $RELEASE/${package}-${OS}-${CPU}.tar.lrzip \
-C $BUILD \
--exclude '*.o' --exclude '*.tmp' \
--use-compress-program lrzip \
${package}-${OS}-${CPU}
done

# now do the small utilities package
Expand All @@ -54,15 +53,15 @@ do
cp $BUILD/llvm-${OS}-${CPU}/bin/$tool $TOOLS/bin
done

TB=tools-${OS}-${CPU}.tar.gz
tar $V -c -f - tools | pigz -9 > $RELEASE/$TB
TARBALLS+=( $TB )
tar $V -c -f $RELEASE/tools-${OS}-${CPU}.tar.gz -y tools

# Compute checksums
cd $RELEASE
FILES=$(ls)
echo '```' > checksums.md
for tb in ${TARBALLS[@]}
for tb in ${FILES}
do
shasum -a 256 $tb >> checksums.md
done
echo '```' >> checksums.md
mv checksums.md ..

0 comments on commit b1bd256

Please sign in to comment.