|
|
|
|
@ -10,14 +10,14 @@ executors:
|
|
|
|
|
docker:
|
|
|
|
|
- image: circleci/buildpack-deps
|
|
|
|
|
environment:
|
|
|
|
|
PRODUCT_REVISION: ""
|
|
|
|
|
PRODUCT_REVISION: "be1555d9b0325d7d8078451c19df46d0aa514c40"
|
|
|
|
|
AUTO_INSTALL_TOOLS: 'YES'
|
|
|
|
|
BUILDKIT_PROGRESS: plain
|
|
|
|
|
shell: /usr/bin/env bash -euo pipefail -c
|
|
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
|
version: 2
|
|
|
|
|
build-standalone:
|
|
|
|
|
build-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814:
|
|
|
|
|
jobs:
|
|
|
|
|
- build-common-layers
|
|
|
|
|
- darwin_amd64_package: { requires: [ build-common-layers ] }
|
|
|
|
|
@ -101,7 +101,7 @@ jobs:
|
|
|
|
|
darwin_amd64_package:
|
|
|
|
|
executor: builder
|
|
|
|
|
environment:
|
|
|
|
|
- PACKAGE_SPEC_ID: e1993a64411c7d5bfae5a3c3eeb15aeda6822ea2
|
|
|
|
|
- PACKAGE_SPEC_ID: 580141912b3b19366ca56eea8dcbb8b005ff3ee9
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
|
- setup_remote_docker:
|
|
|
|
|
@ -116,7 +116,7 @@ jobs:
|
|
|
|
|
# Restore the package cache first, we might not need to rebuild.
|
|
|
|
|
- write-package-cache-key
|
|
|
|
|
- restore_cache:
|
|
|
|
|
key: 'cache001-package-e1993a64411c7d5bfae5a3c3eeb15aeda6822ea2-{{checksum ".buildcache/cache-keys/package-e1993a64411c7d5bfae5a3c3eeb15aeda6822ea2"}}'
|
|
|
|
|
key: 'cache001-package-580141912b3b19366ca56eea8dcbb8b005ff3ee9-{{checksum ".buildcache/cache-keys/package-580141912b3b19366ca56eea8dcbb8b005ff3ee9"}}'
|
|
|
|
|
- run:
|
|
|
|
|
name: Check the cache status.
|
|
|
|
|
command: |
|
|
|
|
|
@ -152,7 +152,7 @@ jobs:
|
|
|
|
|
- run: ls -lahR .buildcache/packages
|
|
|
|
|
# Save package cache.
|
|
|
|
|
- save_cache:
|
|
|
|
|
key: 'cache001-package-e1993a64411c7d5bfae5a3c3eeb15aeda6822ea2-{{checksum ".buildcache/cache-keys/package-e1993a64411c7d5bfae5a3c3eeb15aeda6822ea2"}}'
|
|
|
|
|
key: 'cache001-package-580141912b3b19366ca56eea8dcbb8b005ff3ee9-{{checksum ".buildcache/cache-keys/package-580141912b3b19366ca56eea8dcbb8b005ff3ee9"}}'
|
|
|
|
|
paths:
|
|
|
|
|
- .buildcache/packages/store
|
|
|
|
|
# Save builder image cache if necessary.
|
|
|
|
|
@ -161,7 +161,7 @@ jobs:
|
|
|
|
|
linux_amd64_package:
|
|
|
|
|
executor: builder
|
|
|
|
|
environment:
|
|
|
|
|
- PACKAGE_SPEC_ID: 7655ed418439b6899d17af07f4b46c44b0f7ab65
|
|
|
|
|
- PACKAGE_SPEC_ID: 26ceb6e4a7ebbeff7ef48cfe3d5277a7ed48330c
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
|
- setup_remote_docker:
|
|
|
|
|
@ -176,7 +176,7 @@ jobs:
|
|
|
|
|
# Restore the package cache first, we might not need to rebuild.
|
|
|
|
|
- write-package-cache-key
|
|
|
|
|
- restore_cache:
|
|
|
|
|
key: 'cache001-package-7655ed418439b6899d17af07f4b46c44b0f7ab65-{{checksum ".buildcache/cache-keys/package-7655ed418439b6899d17af07f4b46c44b0f7ab65"}}'
|
|
|
|
|
key: 'cache001-package-26ceb6e4a7ebbeff7ef48cfe3d5277a7ed48330c-{{checksum ".buildcache/cache-keys/package-26ceb6e4a7ebbeff7ef48cfe3d5277a7ed48330c"}}'
|
|
|
|
|
- run:
|
|
|
|
|
name: Check the cache status.
|
|
|
|
|
command: |
|
|
|
|
|
@ -212,7 +212,7 @@ jobs:
|
|
|
|
|
- run: ls -lahR .buildcache/packages
|
|
|
|
|
# Save package cache.
|
|
|
|
|
- save_cache:
|
|
|
|
|
key: 'cache001-package-7655ed418439b6899d17af07f4b46c44b0f7ab65-{{checksum ".buildcache/cache-keys/package-7655ed418439b6899d17af07f4b46c44b0f7ab65"}}'
|
|
|
|
|
key: 'cache001-package-26ceb6e4a7ebbeff7ef48cfe3d5277a7ed48330c-{{checksum ".buildcache/cache-keys/package-26ceb6e4a7ebbeff7ef48cfe3d5277a7ed48330c"}}'
|
|
|
|
|
paths:
|
|
|
|
|
- .buildcache/packages/store
|
|
|
|
|
# Save builder image cache if necessary.
|
|
|
|
|
@ -227,14 +227,14 @@ jobs:
|
|
|
|
|
- load-darwin_amd64_package
|
|
|
|
|
- run:
|
|
|
|
|
environment:
|
|
|
|
|
PACKAGE_SPEC_ID: e1993a64411c7d5bfae5a3c3eeb15aeda6822ea2
|
|
|
|
|
PACKAGE_SPEC_ID: 580141912b3b19366ca56eea8dcbb8b005ff3ee9
|
|
|
|
|
name: Write package metadata for darwin_amd64_package
|
|
|
|
|
command: |
|
|
|
|
|
make package-meta
|
|
|
|
|
- load-linux_amd64_package
|
|
|
|
|
- run:
|
|
|
|
|
environment:
|
|
|
|
|
PACKAGE_SPEC_ID: 7655ed418439b6899d17af07f4b46c44b0f7ab65
|
|
|
|
|
PACKAGE_SPEC_ID: 26ceb6e4a7ebbeff7ef48cfe3d5277a7ed48330c
|
|
|
|
|
name: Write package metadata for linux_amd64_package
|
|
|
|
|
command: |
|
|
|
|
|
make package-meta
|
|
|
|
|
@ -247,41 +247,41 @@ jobs:
|
|
|
|
|
command: ls -lahR .buildcache
|
|
|
|
|
|
|
|
|
|
# Give the lockfile a name store_artifacts can work with.
|
|
|
|
|
- run: cp packages*.lock/pkgs.yml lockfile-standalone.yml
|
|
|
|
|
- run: cp packages*.lock/pkgs.yml lockfile-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.yml
|
|
|
|
|
|
|
|
|
|
# Surface the lock file as an artifact.
|
|
|
|
|
- store_artifacts:
|
|
|
|
|
path: lockfile-standalone.yml
|
|
|
|
|
destination: lockfile-standalone.yml
|
|
|
|
|
path: lockfile-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.yml
|
|
|
|
|
destination: lockfile-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.yml
|
|
|
|
|
|
|
|
|
|
# Surface the package store directory as an artifact.
|
|
|
|
|
# This makes each zipped package separately downloadable.
|
|
|
|
|
- store_artifacts:
|
|
|
|
|
path: .buildcache/packages
|
|
|
|
|
destination: packages-standalone
|
|
|
|
|
destination: packages-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814
|
|
|
|
|
|
|
|
|
|
# Surface a tarball of the whole package store plus lockfile as an artifact.
|
|
|
|
|
- run: tar -czf packages-standalone.tar.gz .buildcache/packages lockfile-standalone.yml
|
|
|
|
|
- run: tar -czf packages-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.tar.gz .buildcache/packages lockfile-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.yml
|
|
|
|
|
- store_artifacts:
|
|
|
|
|
path: packages-standalone.tar.gz
|
|
|
|
|
destination: packages-standalone.tar.gz
|
|
|
|
|
path: packages-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.tar.gz
|
|
|
|
|
destination: packages-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.tar.gz
|
|
|
|
|
|
|
|
|
|
# Surface a tarball of just the metadata files.
|
|
|
|
|
- run: tar -czf meta-standalone.tar.gz .buildcache/packages/store/*.json lockfile-standalone.yml
|
|
|
|
|
- run: tar -czf meta-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.tar.gz .buildcache/packages/store/*.json lockfile-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.yml
|
|
|
|
|
- store_artifacts:
|
|
|
|
|
path: meta-standalone.tar.gz
|
|
|
|
|
destination: meta-standalone.tar.gz
|
|
|
|
|
path: meta-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.tar.gz
|
|
|
|
|
destination: meta-be1555d9b0325d7d8078451c19df46d0aa514c40-77765297f95ba814.tar.gz
|
|
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
load-darwin_amd64_package:
|
|
|
|
|
steps:
|
|
|
|
|
- restore_cache:
|
|
|
|
|
key: 'cache001-package-e1993a64411c7d5bfae5a3c3eeb15aeda6822ea2-{{checksum ".buildcache/cache-keys/package-e1993a64411c7d5bfae5a3c3eeb15aeda6822ea2"}}'
|
|
|
|
|
key: 'cache001-package-580141912b3b19366ca56eea8dcbb8b005ff3ee9-{{checksum ".buildcache/cache-keys/package-580141912b3b19366ca56eea8dcbb8b005ff3ee9"}}'
|
|
|
|
|
|
|
|
|
|
load-linux_amd64_package:
|
|
|
|
|
steps:
|
|
|
|
|
- restore_cache:
|
|
|
|
|
key: 'cache001-package-7655ed418439b6899d17af07f4b46c44b0f7ab65-{{checksum ".buildcache/cache-keys/package-7655ed418439b6899d17af07f4b46c44b0f7ab65"}}'
|
|
|
|
|
key: 'cache001-package-26ceb6e4a7ebbeff7ef48cfe3d5277a7ed48330c-{{checksum ".buildcache/cache-keys/package-26ceb6e4a7ebbeff7ef48cfe3d5277a7ed48330c"}}'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
write-build-layer-cache-keys:
|
|
|
|
|
|