mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Properly enable pipeline cache?
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
image: rust:latest
|
image: rust:latest
|
||||||
|
|
||||||
cache:
|
cache: &rust_cache
|
||||||
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
|
key: $CI_COMMIT_REF_SLUG
|
||||||
paths:
|
paths:
|
||||||
# Don't include `incremental` to save space
|
# Don't include `incremental` to save space
|
||||||
# Debug
|
# Debug
|
||||||
@@ -9,7 +9,6 @@ cache:
|
|||||||
- target/debug/deps/
|
- target/debug/deps/
|
||||||
- target/debug/.fingerprint/
|
- target/debug/.fingerprint/
|
||||||
- target/debug/.cargo-lock
|
- target/debug/.cargo-lock
|
||||||
- target/debug/df_storyteller
|
|
||||||
# Release
|
# Release
|
||||||
- target/release/build/
|
- target/release/build/
|
||||||
- target/release/deps/
|
- target/release/deps/
|
||||||
@@ -24,8 +23,10 @@ stages:
|
|||||||
- check
|
- check
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
|
- pages
|
||||||
|
|
||||||
format:
|
format:
|
||||||
|
<<: *rust_cache
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
@@ -34,6 +35,7 @@ format:
|
|||||||
- cargo fmt --check
|
- cargo fmt --check
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
<<: *rust_cache
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
@@ -44,6 +46,7 @@ check:
|
|||||||
- cargo install cargo-cranky && cargo cranky
|
- cargo install cargo-cranky && cargo cranky
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
<<: *rust_cache
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
@@ -59,5 +62,20 @@ release:
|
|||||||
- vendor_asusctl_*.tar.xz
|
- vendor_asusctl_*.tar.xz
|
||||||
- cargo-config
|
- cargo-config
|
||||||
|
|
||||||
|
pages:
|
||||||
|
<<: *rust_cache
|
||||||
|
stage: deploy
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
script:
|
||||||
|
- cargo doc --document-private-items --no-deps --workspace
|
||||||
|
- rm -rf public
|
||||||
|
- mkdir public
|
||||||
|
- cp -R target/doc/* public
|
||||||
|
- cp misc/index.html public
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: normal
|
GIT_SUBMODULE_STRATEGY: normal
|
||||||
|
|||||||
Reference in New Issue
Block a user