ci: Add caches
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux

Closes #126.
This commit is contained in:
Lucas Schwiderski 2023-11-13 15:00:32 +01:00
parent a90614f2e9
commit c2cdeedb2c
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8
3 changed files with 11 additions and 2 deletions

View file

@ -15,6 +15,10 @@ inputs:
outputs:
- name: artifacts
caches:
- path: repo/target
- path: /usr/local/cargo/registry
params:
CI: "true"
TARGET: ((target))

View file

@ -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))

View file

@ -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" \