Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions tools/fuchsia/build_fuchsia_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,27 @@ def BuildBucket(runtime_mode, arch, optimized, product):
CopyVulkanDepsToBucket(out_dir, deps_dir, arch)
CopyIcuDepsToBucket(out_dir, deps_dir)

# Copy the CIPD YAML template from the source directory to be next to the bucket
# we are about to package.
cipd_yaml = os.path.join(_script_dir, 'fuchsia.cipd.yaml')
CopyFiles(cipd_yaml, os.path.join(_bucket_directory, 'fuchsia.cipd.yaml'))

# Copy the license files from the source directory to be next to the bucket we
# are about to package.
bucket_root = os.path.join(_bucket_directory, 'flutter')
licenses_root = os.path.join(_src_root_dir, 'flutter/ci/licenses_golden')
license_files = [
'licenses_flutter',
'licenses_fuchsia',
'licenses_gpu',
'licenses_skia',
'licenses_third_party'
]
for license in license_files:
src_path = os.path.join(licenses_root, license)
dst_path = os.path.join(bucket_root, license)
CopyPath(src_path, dst_path)

def CheckCIPDPackageExists(package_name, tag):
'''Check to see if the current package/tag combo has been published'''
command = [
Expand Down Expand Up @@ -207,27 +228,6 @@ def RunCIPDCommandWithRetries(command):
raise

def ProcessCIPDPackage(upload, engine_version):
# Copy the CIPD YAML template from the source directory to be next to the bucket
# we are about to package.
cipd_yaml = os.path.join(_script_dir, 'fuchsia.cipd.yaml')
CopyFiles(cipd_yaml, os.path.join(_bucket_directory, 'fuchsia.cipd.yaml'))

# Copy the license files from the source directory to be next to the bucket we
# are about to package.
bucket_root = os.path.join(_bucket_directory, 'flutter')
licenses_root = os.path.join(_src_root_dir, 'flutter/ci/licenses_golden')
license_files = [
'licenses_flutter',
'licenses_fuchsia',
'licenses_gpu',
'licenses_skia',
'licenses_third_party'
]
for license in license_files:
src_path = os.path.join(licenses_root, license)
dst_path = os.path.join(bucket_root, license)
CopyPath(src_path, dst_path)

if not upload or not IsLinux():
RunCIPDCommandWithRetries([
'cipd', 'pkg-build', '-pkg-def', 'fuchsia.cipd.yaml', '-out',
Expand Down