From a8428221fe37ff1517cfb4b91745d462a5e6c6f1 Mon Sep 17 00:00:00 2001 From: Matthieu <20992787+MatthieuCoder@users.noreply.github.com> Date: Sun, 26 Sep 2021 20:47:05 +0400 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 754da91..5539cce 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,11 +23,23 @@ jobs: steps: - checkout - setup-bazel + - restore_cache: + keys: + - bazel-cache-{{ .Branch }} - run: name: "Build" command: "bazel build //:packages" + - save_cache: + paths: + - ~/.cache/bazel + key: bazel-cache-{{ .Branch }} + - run: + name: "Move artifacts" + command: | + mkdir ~/project/artifacts + mv ~/project/bazel-bin/packages* ~/project/artifacts - store_artifacts: - path: ~/project/bazel-bin/packages* + path: ~/project/artifacts workflows: build-workflow: -- 2.39.5