File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
swift-ci/sdks/android/scripts Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ jobs:
27
27
strategy :
28
28
fail-fast : false
29
29
matrix :
30
- build-type : ['docker']
31
- # build-type: ['docker', 'local']
30
+ # build-type: ['docker']
31
+ build-type : ['docker', 'local']
32
32
# blank arch builds all (aarch64,x86_64,armv7)
33
- arch : ['']
33
+ # arch: ['']
34
34
# builds only x86_64 to speed up the validation
35
35
# arch: ['x86_64']
36
36
# build both the quick (x86_64) and complete (aarch64,x86_64,armv7) SDKs
37
- # arch: ['x86_64', '']
37
+ arch : ['x86_64', '']
38
38
swift-version : ['release', 'swift-6.2-branch', 'development']
39
39
runs-on : ubuntu-24.04
40
40
steps :
Original file line number Diff line number Diff line change @@ -186,6 +186,8 @@ function versionFromTag {
186
186
}
187
187
188
188
swift_version=$( describe ${source_dir} /swift-project/swift)
189
+ swift_tag_date=$( git -C ${source_dir} /swift-project/swift log -1 --format=%ct 2> /dev/null)
190
+
189
191
if [[ $swift_version == swift-* ]]; then
190
192
swift_version=${swift_version# swift-}
191
193
fi
@@ -631,8 +633,13 @@ header "Outputting compressed bundle"
631
633
632
634
quiet_pushd " ${build_dir} "
633
635
mkdir -p " ${products_dir} "
634
- tar czf " ${bundle} .tar.gz" " ${bundle} "
635
- mv " ${bundle} .tar.gz" " ${products_dir} "
636
+ # set the timestamps of every file in the artifact to the tag date for the swift repo for build reproducibility
637
+ touch_date=$( date -d " @$swift_tag_date " " +%Y%m%d%H%M.%S" )
638
+ find " ${bundle} " -exec touch -t " $touch_date " {} +
639
+
640
+ bundle_archive=" ${products_dir} /${bundle} .tar.gz"
641
+ tar czf " ${bundle_archive} " " ${bundle} "
642
+ shasum -a 256 " ${bundle_archive} "
636
643
quiet_popd
637
644
638
645
groupend
You can’t perform that action at this time.
0 commit comments