Added cargo cache to gitlab ci cache

This commit is contained in:
Mutzi 2023-01-25 16:14:13 +01:00
parent 9537113a50
commit 78f4e0f681
2 changed files with 9 additions and 0 deletions

View File

@ -11,12 +11,16 @@ build:
rules: rules:
- if: $CI_COMMIT_BRANCH == "installer" - if: $CI_COMMIT_BRANCH == "installer"
script: script:
- export CARGO_HOME="${PWD}/.cargo"
- apk add pkgconf musl-dev - 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 - 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 - cp target/x86_64-unknown-linux-musl/release/dotfiles_installer ./installer-amd64
artifacts: artifacts:
paths: paths:
- installer-amd64 - installer-amd64
cache:
paths:
- .cargo/
upload_assets: upload_assets:

View File

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>