From c2cdeedb2cae21ad85f999db2b84b268e70cd7d3 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Mon, 13 Nov 2023 15:00:32 +0100 Subject: [PATCH] ci: Add caches Closes #126. --- .ci/tasks/build.yml | 4 ++++ .ci/tasks/clippy.yml | 8 +++++++- .ci/tasks/upload.sh | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.ci/tasks/build.yml b/.ci/tasks/build.yml index c58ed38..3dd4215 100644 --- a/.ci/tasks/build.yml +++ b/.ci/tasks/build.yml @@ -15,6 +15,10 @@ inputs: outputs: - name: artifacts +caches: + - path: repo/target + - path: /usr/local/cargo/registry + params: CI: "true" TARGET: ((target)) diff --git a/.ci/tasks/clippy.yml b/.ci/tasks/clippy.yml index 35735c3..cea0e76 100644 --- a/.ci/tasks/clippy.yml +++ b/.ci/tasks/clippy.yml @@ -1,7 +1,9 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/cappyzawa/concourse-pipeline-jsonschema/master/concourse_jsonschema.json#/definitions/TaskConfig --- platform: linux image_resource: + name: dtmt-ci-base-linux type: registry-image source: repository: registry.local:5000/dtmt-ci-base-linux @@ -10,8 +12,12 @@ image_resource: inputs: - name: repo +caches: + - path: repo/target + - path: /usr/local/cargo/registry + params: - CI: true + CI: "true" GITEA_API_KEY: ((gitea_api_key)) REF: ((ref)) diff --git a/.ci/tasks/upload.sh b/.ci/tasks/upload.sh index 5c0dd59..5e1103e 100755 --- a/.ci/tasks/upload.sh +++ b/.ci/tasks/upload.sh @@ -23,7 +23,6 @@ echo "ref: $ref" for f in dtmt dtmt.exe dtmm dtmm.exe; do if [ -f "$artifacts/$f" ]; then url="$base_url/$(basename -s .exe $f)/$ref/$f" - echo "$url" curl -i -X 'PUT' \ --user "concourse:$GITEA_API_KEY" \ --upload-file "$artifacts/$f" \