From ec4b1b69d32caf3584918735e5a7358750b0114a Mon Sep 17 00:00:00 2001 From: Scott Miller Date: Wed, 14 Jul 2021 09:26:37 -0500 Subject: [PATCH] Enable building darwin arm64 for 1.8.x (#11855) (#12071) * Enable building darwin arm64 for 1.8.x (#11855) * Changelog Co-authored-by: Vishal Nayak --- .circleci/config.yml | 183 ++++++++++++++++++++-------- .circleci/config/@build-release.yml | 178 +++++++++++++++++++-------- changelog/12071.txt | 3 + packages-oss.lock/Makefile | 2 - packages-oss.lock/pkgs.yml | 72 ++++++++++- packages-oss.yml | 1 + 6 files changed, 337 insertions(+), 102 deletions(-) create mode 100644 changelog/12071.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index 42cd9acc7..c359d0cc3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,6 +21,9 @@ jobs: - restore_cache: key: package-2ffbc24c482a71c7f16a87ad5cc6c01038544fe3-{{checksum ".buildcache/cache-keys/package-2ffbc24c482a71c7f16a87ad5cc6c01038544fe3"}} name: Restore package cache + - restore_cache: + key: package-2ee966c5768e83a92093c0bc6a2fc6042afe4839-{{checksum ".buildcache/cache-keys/package-2ee966c5768e83a92093c0bc6a2fc6042afe4839"}} + name: Restore package cache - restore_cache: key: package-61f4e059780eac8772bed584d10749860f2fdce1-{{checksum ".buildcache/cache-keys/package-61f4e059780eac8772bed584d10749860f2fdce1"}} name: Restore package cache @@ -73,20 +76,20 @@ jobs: command: ls -lahR .buildcache name: List Build Cache - run: - command: cp packages*.lock/pkgs.yml lockfile-7d1b28ede60990fa.yml + command: cp packages*.lock/pkgs.yml lockfile-e0096d0cd2ca1c5a.yml name: Update Lockfile Name - run: - command: tar -czf packages-7d1b28ede60990fa.tar.gz .buildcache/packages lockfile-7d1b28ede60990fa.yml + command: tar -czf packages-e0096d0cd2ca1c5a.tar.gz .buildcache/packages lockfile-e0096d0cd2ca1c5a.yml name: Create Raw Package Tarball - run: - command: tar -czf meta-7d1b28ede60990fa.tar.gz .buildcache/packages/store/*.json lockfile-7d1b28ede60990fa.yml + command: tar -czf meta-e0096d0cd2ca1c5a.tar.gz .buildcache/packages/store/*.json lockfile-e0096d0cd2ca1c5a.yml name: Create Metadata Tarball - store_artifacts: - path: lockfile-7d1b28ede60990fa.yml + path: lockfile-e0096d0cd2ca1c5a.yml - store_artifacts: - path: packages-7d1b28ede60990fa.tar.gz + path: packages-e0096d0cd2ca1c5a.tar.gz - store_artifacts: - path: meta-7d1b28ede60990fa.tar.gz + path: meta-e0096d0cd2ca1c5a.tar.gz - store_artifacts: path: .buildcache/packages environment: @@ -108,7 +111,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -150,7 +153,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -171,6 +174,84 @@ jobs: name: Save package cache paths: - .buildcache/packages/store + darwin_arm64_package: + docker: + - image: docker.mirror.hashicorp.services/circleci/buildpack-deps + shell: /usr/bin/env bash -euo pipefail -c + environment: + - AUTO_INSTALL_TOOLS: 'YES' + - BUILDKIT_PROGRESS: plain + - PRODUCT_REVISION: '' + - PACKAGE_SPEC_ID: 2ee966c5768e83a92093c0bc6a2fc6042afe4839 + steps: + - setup_remote_docker: + docker_layer_caching: false + version: 19.03.12 + - add_ssh_keys: + fingerprints: + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 + - checkout: + path: . + - run: + command: make -C packages*.lock write-package-cache-key + name: Write package cache key + - restore_cache: + key: package-2ee966c5768e83a92093c0bc6a2fc6042afe4839-{{checksum ".buildcache/cache-keys/package-2ee966c5768e83a92093c0bc6a2fc6042afe4839"}} + name: Restore package cache + - run: + command: |2 + + if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then + echo "No package found, continuing with build." + exit 0 + fi + echo "Package already cached, skipping build." + circleci-agent step halt + name: Check cache status + - run: + command: make -C packages*.lock write-builder-cache-keys + name: Write builder layer cache keys + - restore_cache: + key: copy-source_01bb_{{checksum ".buildcache/cache-keys/copy-source-01bb587fbaa40eee3270a2dfa7865a8e37dde482"}} + keys: + - go-modules_87d5_{{checksum ".buildcache/cache-keys/go-modules-87d5fe370bb634974f7b55a067206409c85d5947"}} + - build-static-assets_c9eb_{{checksum ".buildcache/cache-keys/build-static-assets-c9eb755a774c85539457676828158a137604f20d"}} + - build-ui_f5d8_{{checksum ".buildcache/cache-keys/build-ui-f5d8c1975b103bbe13e2841b5e8a5d1a11c96e78"}} + - ui-dependencies_ac8b_{{checksum ".buildcache/cache-keys/ui-dependencies-ac8be120c6d5a16da43fee57c2cecb19a70f8098"}} + - install-yarn_3ec0_{{checksum ".buildcache/cache-keys/install-yarn-3ec09455a50e67ce0e6b9f03e2cefa3e97333a5b"}} + - set-workdir_3310_{{checksum ".buildcache/cache-keys/set-workdir-331006d1434fd1975dad2affbf71fdbf845d22d6"}} + - install-go-tools_dcaa_{{checksum ".buildcache/cache-keys/install-go-tools-dcaa9bb2de49ba79e84aa2ec9e02018c05e62950"}} + - install-go_d552_{{checksum ".buildcache/cache-keys/install-go-d55278f9cd49b917d025adaeed3032cc8b0dc7d7"}} + - base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}} + name: 'Restore Builder Image Cache: copy-source' + - run: + command: make -C packages*.lock load-builder-cache + name: Load whatever builder cache we have (if any) into the Docker daemon + no_output_timeout: 30m + - run: + command: |2- + + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" + eval "$(ssh-agent -s)" + if [ -f "$KEYFILE" ]; then + ssh-add "$KEYFILE" + else + echo "==> INFO: SSH key for github.com not found" + echo " Attempts to access private repositories from within" + echo " the build will fail, e.g. for private go modules, or" + echo " attempts to directly clone private repositories." + fi + + make -C packages*.lock package + name: Compile Package + - run: + command: ls -lahR .buildcache/packages + name: List packages + - save_cache: + key: package-2ee966c5768e83a92093c0bc6a2fc6042afe4839-{{checksum ".buildcache/cache-keys/package-2ee966c5768e83a92093c0bc6a2fc6042afe4839"}} + name: Save package cache + paths: + - .buildcache/packages/store windows_386_package: docker: - image: docker.mirror.hashicorp.services/circleci/buildpack-deps @@ -186,7 +267,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -228,7 +309,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -278,7 +359,7 @@ jobs: steps: - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -303,7 +384,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -319,7 +400,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -335,7 +416,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -351,7 +432,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -367,7 +448,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -383,7 +464,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -399,7 +480,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -415,7 +496,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -431,7 +512,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -447,7 +528,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -463,7 +544,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -500,7 +581,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -542,7 +623,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -631,7 +712,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -673,7 +754,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -792,7 +873,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -834,7 +915,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1052,7 +1133,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1094,7 +1175,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1302,7 +1383,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1344,7 +1425,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1380,7 +1461,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1422,7 +1503,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1458,7 +1539,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1500,7 +1581,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1559,7 +1640,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1601,7 +1682,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1809,7 +1890,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1851,7 +1932,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1887,7 +1968,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1929,7 +2010,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1965,7 +2046,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -2007,7 +2088,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -2043,7 +2124,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -2085,7 +2166,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -2121,7 +2202,7 @@ jobs: version: 19.03.12 - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -2163,7 +2244,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -2452,7 +2533,7 @@ jobs: - CIRCLECI_CLI_VERSION: 0.1.5546 - GO_TAGS: '' workflows: - build-7d1b28ede60990fa: + build-e0096d0cd2ca1c5a: jobs: - build-common-layers - darwin_amd64_package: @@ -2461,6 +2542,7 @@ workflows: - bundle-releases: requires: - darwin_amd64_package + - darwin_arm64_package - freebsd_386_package - freebsd_amd64_package - freebsd_arm_package @@ -2475,6 +2557,9 @@ workflows: - solaris_amd64_package - windows_386_package - windows_amd64_package + - darwin_arm64_package: + requires: + - build-common-layers - freebsd_386_package: requires: - build-common-layers diff --git a/.circleci/config/@build-release.yml b/.circleci/config/@build-release.yml index 2c1a754d8..f8e46ffa9 100644 --- a/.circleci/config/@build-release.yml +++ b/.circleci/config/@build-release.yml @@ -23,7 +23,7 @@ jobs: steps: - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -48,7 +48,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -64,7 +64,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -80,7 +80,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -96,7 +96,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -112,7 +112,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -128,7 +128,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -144,7 +144,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -160,7 +160,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -176,7 +176,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -192,7 +192,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -208,7 +208,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -240,6 +240,9 @@ jobs: - restore_cache: key: package-2ffbc24c482a71c7f16a87ad5cc6c01038544fe3-{{checksum ".buildcache/cache-keys/package-2ffbc24c482a71c7f16a87ad5cc6c01038544fe3"}} name: Restore package cache + - restore_cache: + key: package-2ee966c5768e83a92093c0bc6a2fc6042afe4839-{{checksum ".buildcache/cache-keys/package-2ee966c5768e83a92093c0bc6a2fc6042afe4839"}} + name: Restore package cache - restore_cache: key: package-61f4e059780eac8772bed584d10749860f2fdce1-{{checksum ".buildcache/cache-keys/package-61f4e059780eac8772bed584d10749860f2fdce1"}} name: Restore package cache @@ -292,20 +295,20 @@ jobs: command: ls -lahR .buildcache name: List Build Cache - run: - command: cp packages*.lock/pkgs.yml lockfile-7d1b28ede60990fa.yml + command: cp packages*.lock/pkgs.yml lockfile-e0096d0cd2ca1c5a.yml name: Update Lockfile Name - run: - command: tar -czf packages-7d1b28ede60990fa.tar.gz .buildcache/packages lockfile-7d1b28ede60990fa.yml + command: tar -czf packages-e0096d0cd2ca1c5a.tar.gz .buildcache/packages lockfile-e0096d0cd2ca1c5a.yml name: Create Raw Package Tarball - run: - command: tar -czf meta-7d1b28ede60990fa.tar.gz .buildcache/packages/store/*.json lockfile-7d1b28ede60990fa.yml + command: tar -czf meta-e0096d0cd2ca1c5a.tar.gz .buildcache/packages/store/*.json lockfile-e0096d0cd2ca1c5a.yml name: Create Metadata Tarball - store_artifacts: - path: lockfile-7d1b28ede60990fa.yml + path: lockfile-e0096d0cd2ca1c5a.yml - store_artifacts: - path: packages-7d1b28ede60990fa.tar.gz + path: packages-e0096d0cd2ca1c5a.tar.gz - store_artifacts: - path: meta-7d1b28ede60990fa.tar.gz + path: meta-e0096d0cd2ca1c5a.tar.gz - store_artifacts: path: .buildcache/packages darwin_amd64_package: @@ -316,7 +319,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -358,7 +361,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -381,6 +384,79 @@ jobs: name: Save package cache environment: PACKAGE_SPEC_ID: 2ffbc24c482a71c7f16a87ad5cc6c01038544fe3 + darwin_arm64_package: + executor: builder + steps: + - setup_remote_docker: + version: 19.03.12 + docker_layer_caching: false + - add_ssh_keys: + fingerprints: + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 + - checkout: + path: . + - run: + command: make -C packages*.lock write-package-cache-key + name: Write package cache key + - restore_cache: + key: package-2ee966c5768e83a92093c0bc6a2fc6042afe4839-{{checksum ".buildcache/cache-keys/package-2ee966c5768e83a92093c0bc6a2fc6042afe4839"}} + name: Restore package cache + - run: + command: |2 + + if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then + echo "No package found, continuing with build." + exit 0 + fi + echo "Package already cached, skipping build." + circleci-agent step halt + name: Check cache status + - run: + command: make -C packages*.lock write-builder-cache-keys + name: Write builder layer cache keys + - restore_cache: + key: copy-source_01bb_{{checksum ".buildcache/cache-keys/copy-source-01bb587fbaa40eee3270a2dfa7865a8e37dde482"}} + keys: + - go-modules_87d5_{{checksum ".buildcache/cache-keys/go-modules-87d5fe370bb634974f7b55a067206409c85d5947"}} + - build-static-assets_c9eb_{{checksum ".buildcache/cache-keys/build-static-assets-c9eb755a774c85539457676828158a137604f20d"}} + - build-ui_f5d8_{{checksum ".buildcache/cache-keys/build-ui-f5d8c1975b103bbe13e2841b5e8a5d1a11c96e78"}} + - ui-dependencies_ac8b_{{checksum ".buildcache/cache-keys/ui-dependencies-ac8be120c6d5a16da43fee57c2cecb19a70f8098"}} + - install-yarn_3ec0_{{checksum ".buildcache/cache-keys/install-yarn-3ec09455a50e67ce0e6b9f03e2cefa3e97333a5b"}} + - set-workdir_3310_{{checksum ".buildcache/cache-keys/set-workdir-331006d1434fd1975dad2affbf71fdbf845d22d6"}} + - install-go-tools_dcaa_{{checksum ".buildcache/cache-keys/install-go-tools-dcaa9bb2de49ba79e84aa2ec9e02018c05e62950"}} + - install-go_d552_{{checksum ".buildcache/cache-keys/install-go-d55278f9cd49b917d025adaeed3032cc8b0dc7d7"}} + - base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}} + name: 'Restore Builder Image Cache: copy-source' + - run: + command: make -C packages*.lock load-builder-cache + name: Load whatever builder cache we have (if any) into the Docker daemon + no_output_timeout: 30m + - run: + command: |2- + + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" + eval "$(ssh-agent -s)" + if [ -f "$KEYFILE" ]; then + ssh-add "$KEYFILE" + else + echo "==> INFO: SSH key for github.com not found" + echo " Attempts to access private repositories from within" + echo " the build will fail, e.g. for private go modules, or" + echo " attempts to directly clone private repositories." + fi + + make -C packages*.lock package + name: Compile Package + - run: + command: ls -lahR .buildcache/packages + name: List packages + - save_cache: + paths: + - .buildcache/packages/store + key: package-2ee966c5768e83a92093c0bc6a2fc6042afe4839-{{checksum ".buildcache/cache-keys/package-2ee966c5768e83a92093c0bc6a2fc6042afe4839"}} + name: Save package cache + environment: + PACKAGE_SPEC_ID: 2ee966c5768e83a92093c0bc6a2fc6042afe4839 freebsd_386_package: executor: builder steps: @@ -389,7 +465,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -431,7 +507,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -462,7 +538,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -504,7 +580,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -535,7 +611,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -577,7 +653,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -608,7 +684,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -650,7 +726,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -681,7 +757,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -723,7 +799,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -754,7 +830,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -796,7 +872,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -827,7 +903,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -869,7 +945,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -900,7 +976,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -942,7 +1018,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -973,7 +1049,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1015,7 +1091,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1046,7 +1122,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1088,7 +1164,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1119,7 +1195,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1161,7 +1237,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1192,7 +1268,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1234,7 +1310,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1265,7 +1341,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1307,7 +1383,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1338,7 +1414,7 @@ jobs: docker_layer_caching: false - add_ssh_keys: fingerprints: - - 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06 + - c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98 - checkout: path: . - run: @@ -1380,7 +1456,7 @@ jobs: - run: command: |2- - KEYFILE="$HOME/.ssh/id_rsa_0e0377f4e2c356c2536a03e131912f06" + KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98" eval "$(ssh-agent -s)" if [ -f "$KEYFILE" ]; then ssh-add "$KEYFILE" @@ -1404,7 +1480,7 @@ jobs: environment: PACKAGE_SPEC_ID: f9c04b6983662af4c2c142b479e371f5964caf09 workflows: - build-7d1b28ede60990fa: + build-e0096d0cd2ca1c5a: jobs: - build-common-layers: {} - darwin_amd64_package: @@ -1413,6 +1489,7 @@ workflows: - bundle-releases: requires: - darwin_amd64_package + - darwin_arm64_package - freebsd_386_package - freebsd_amd64_package - freebsd_arm_package @@ -1427,6 +1504,9 @@ workflows: - solaris_amd64_package - windows_386_package - windows_amd64_package + - darwin_arm64_package: + requires: + - build-common-layers - freebsd_386_package: requires: - build-common-layers diff --git a/changelog/12071.txt b/changelog/12071.txt new file mode 100644 index 000000000..17b7c6864 --- /dev/null +++ b/changelog/12071.txt @@ -0,0 +1,3 @@ +```release-note:feature +core: Add a darwin/arm64 binary release supporting the Apple M1 CPU +``` \ No newline at end of file diff --git a/packages-oss.lock/Makefile b/packages-oss.lock/Makefile index 706e425c8..6361530a6 100755 --- a/packages-oss.lock/Makefile +++ b/packages-oss.lock/Makefile @@ -291,8 +291,6 @@ $(RELEASE_TARGETS): # QUERY_TARGETS are targets in the release repo that perform queries, and are therefore # not necessarily bound to a specific PRODUCT_VERSION or PRODUCT_REVISION. -# We still export PRODUCT_VERSION and PRODUCT_REVISION because they can be used as query -# parameters. QUERY_TARGETS := list-staged-builds list-promoted-builds list-custom-builds watch-ci $(QUERY_TARGETS): RELEASE_SYSTEM_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD) diff --git a/packages-oss.lock/pkgs.yml b/packages-oss.lock/pkgs.yml index b1e6d9b1b..d4688449c 100644 --- a/packages-oss.lock/pkgs.yml +++ b/packages-oss.lock/pkgs.yml @@ -1,8 +1,8 @@ # *** # WARNING: Do not EDIT or MERGE this file, it is generated by packagespec. # *** -lockid: 7d1b28ede60990fa -packagespec-version: 0.2.7 +lockid: e0096d0cd2ca1c5a +packagespec-version: 0.2.2 cache-version: 10 packages: - packagespecid: 2ffbc24c482a71c7f16a87ad5cc6c01038544fe3 @@ -73,6 +73,74 @@ packages: path: vault_0.0.0-snapshot_darwin_amd64.zip - type: public-hc-releases path: vault/vault_0.0.0-snapshot/vault_0.0.0-snapshot_darwin_amd64.zip + - packagespecid: 2ee966c5768e83a92093c0bc6a2fc6042afe4839 + inputs: + BINARY_NAME: vault + CGO_ENABLED: "0" + GO_VERSION: 1.16.5 + GO111MODULE: "off" + GOARCH: arm64 + GOOS: darwin + PRODUCT_VERSION: 0.0.0-snapshot + PRODUCT_VERSION_MMP: 0.0.0 + PRODUCT_VERSION_PRE: snapshot + YARN_VERSION: 1.19.1-1 + meta: + BUILD_JOB_NAME: darwin_arm64_package + BUNDLE_NAME: vault_0.0.0-snapshot + builtin: + BUILD_LAYERS: + - type: copy-source + name: 09-copy-source-01bb587fbaa40eee3270a2dfa7865a8e37dde482 + archive: .buildcache/archives/09-copy-source-01bb587fbaa40eee3270a2dfa7865a8e37dde482.tar.gz + - type: go-modules + name: 08-go-modules-87d5fe370bb634974f7b55a067206409c85d5947 + archive: .buildcache/archives/08-go-modules-87d5fe370bb634974f7b55a067206409c85d5947.tar.gz + - type: build-static-assets + name: 07-build-static-assets-c9eb755a774c85539457676828158a137604f20d + archive: .buildcache/archives/07-build-static-assets-c9eb755a774c85539457676828158a137604f20d.tar.gz + - type: build-ui + name: 06-build-ui-f5d8c1975b103bbe13e2841b5e8a5d1a11c96e78 + archive: .buildcache/archives/06-build-ui-f5d8c1975b103bbe13e2841b5e8a5d1a11c96e78.tar.gz + - type: ui-dependencies + name: 05-ui-dependencies-ac8be120c6d5a16da43fee57c2cecb19a70f8098 + archive: .buildcache/archives/05-ui-dependencies-ac8be120c6d5a16da43fee57c2cecb19a70f8098.tar.gz + - type: install-yarn + name: 04-install-yarn-3ec09455a50e67ce0e6b9f03e2cefa3e97333a5b + archive: .buildcache/archives/04-install-yarn-3ec09455a50e67ce0e6b9f03e2cefa3e97333a5b.tar.gz + - type: set-workdir + name: 03-set-workdir-331006d1434fd1975dad2affbf71fdbf845d22d6 + archive: .buildcache/archives/03-set-workdir-331006d1434fd1975dad2affbf71fdbf845d22d6.tar.gz + - type: install-go-tools + name: 02-install-go-tools-dcaa9bb2de49ba79e84aa2ec9e02018c05e62950 + archive: .buildcache/archives/02-install-go-tools-dcaa9bb2de49ba79e84aa2ec9e02018c05e62950.tar.gz + - type: install-go + name: 01-install-go-d55278f9cd49b917d025adaeed3032cc8b0dc7d7 + archive: .buildcache/archives/01-install-go-d55278f9cd49b917d025adaeed3032cc8b0dc7d7.tar.gz + - type: base + name: 00-base-c6cdf1b224722d2520e082320f2a71875913247c + archive: .buildcache/archives/00-base-c6cdf1b224722d2520e082320f2a71875913247c.tar.gz + PACKAGE_CACHE_KEY_FILE: .buildcache/cache-keys/package-2ee966c5768e83a92093c0bc6a2fc6042afe4839 + POST_PROCESSORS: apple-notarize av-scan + circleci: + BUILDER_CACHE_KEY_PREFIX_LIST: + - copy-source_01bb_{{checksum ".buildcache/cache-keys/copy-source-01bb587fbaa40eee3270a2dfa7865a8e37dde482"}} + - go-modules_87d5_{{checksum ".buildcache/cache-keys/go-modules-87d5fe370bb634974f7b55a067206409c85d5947"}} + - build-static-assets_c9eb_{{checksum ".buildcache/cache-keys/build-static-assets-c9eb755a774c85539457676828158a137604f20d"}} + - build-ui_f5d8_{{checksum ".buildcache/cache-keys/build-ui-f5d8c1975b103bbe13e2841b5e8a5d1a11c96e78"}} + - ui-dependencies_ac8b_{{checksum ".buildcache/cache-keys/ui-dependencies-ac8be120c6d5a16da43fee57c2cecb19a70f8098"}} + - install-yarn_3ec0_{{checksum ".buildcache/cache-keys/install-yarn-3ec09455a50e67ce0e6b9f03e2cefa3e97333a5b"}} + - set-workdir_3310_{{checksum ".buildcache/cache-keys/set-workdir-331006d1434fd1975dad2affbf71fdbf845d22d6"}} + - install-go-tools_dcaa_{{checksum ".buildcache/cache-keys/install-go-tools-dcaa9bb2de49ba79e84aa2ec9e02018c05e62950"}} + - install-go_d552_{{checksum ".buildcache/cache-keys/install-go-d55278f9cd49b917d025adaeed3032cc8b0dc7d7"}} + - base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}} + PACKAGE_CACHE_KEY: package-2ee966c5768e83a92093c0bc6a2fc6042afe4839-{{checksum ".buildcache/cache-keys/package-2ee966c5768e83a92093c0bc6a2fc6042afe4839"}} + build-command: VERSION_PKG_PATH=github.com/hashicorp/vault/sdk/version; GO111MODULE=on go build -v -tags ui -ldflags " -X $VERSION_PKG_PATH.GitCommit=$PACKAGE_SOURCE_ID -X $VERSION_PKG_PATH.Version=0.0.0 -X $VERSION_PKG_PATH.VersionPrerelease=snapshot" -o $OUTPUT_DIR/vault && cd $OUTPUT_DIR && zip $PACKAGE_ZIP_NAME vault + aliases: + - type: local + path: vault_0.0.0-snapshot_darwin_arm64.zip + - type: public-hc-releases + path: vault/vault_0.0.0-snapshot/vault_0.0.0-snapshot_darwin_arm64.zip - packagespecid: 61f4e059780eac8772bed584d10749860f2fdce1 inputs: BINARY_NAME: vault diff --git a/packages-oss.yml b/packages-oss.yml index 1da7903ba..86723ef00 100644 --- a/packages-oss.yml +++ b/packages-oss.yml @@ -104,6 +104,7 @@ build-command: VERSION_PKG_PATH=github.com/hashicorp/vault/sdk/version; # is a useful data source for building CI/CD pipelines. packages: - inputs: { GOOS: darwin, GOARCH: amd64 } + - inputs: { GOOS: darwin, GOARCH: arm64 } - inputs: { GOOS: freebsd, GOARCH: 386 } - inputs: { GOOS: freebsd, GOARCH: amd64 } - inputs: { GOOS: freebsd, GOARCH: arm }