From 78f4e0f68158367b7dba1200022b8f1118ec3a9e Mon Sep 17 00:00:00 2001 From: Mutzi Date: Wed, 25 Jan 2023 16:14:13 +0100 Subject: [PATCH] Added cargo cache to gitlab ci cache --- .gitlab-ci.yml | 4 ++++ .idea/codeStyles/codeStyleConfig.xml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 .idea/codeStyles/codeStyleConfig.xml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b45c3bc..5e69891 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,12 +11,16 @@ build: rules: - if: $CI_COMMIT_BRANCH == "installer" script: + - export CARGO_HOME="${PWD}/.cargo" - apk add pkgconf musl-dev - RUSTFLAGS='-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s' cargo build --release --target x86_64-unknown-linux-musl - cp target/x86_64-unknown-linux-musl/release/dotfiles_installer ./installer-amd64 artifacts: paths: - installer-amd64 + cache: + paths: + - .cargo/ upload_assets: diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file