mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Update .gitlab-ci.yml file
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
image: rust:latest
|
image: rust:latest
|
||||||
|
|
||||||
cache: &rust_cache
|
cache: &rust_cache
|
||||||
key: $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
|
||||||
@@ -23,21 +23,23 @@ stages:
|
|||||||
- check
|
- check
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
- pages
|
- deploy
|
||||||
|
|
||||||
format:
|
format:
|
||||||
<<: *rust_cache
|
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
|
cache:
|
||||||
|
<<: *rust_cache
|
||||||
script:
|
script:
|
||||||
- echo "nightly" > rust-toolchain
|
- echo "nightly" > rust-toolchain
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
- cargo fmt --check
|
- cargo fmt --check
|
||||||
|
|
||||||
check:
|
check:
|
||||||
<<: *rust_cache
|
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
|
cache:
|
||||||
|
<<: *rust_cache
|
||||||
script:
|
script:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo check
|
- cargo check
|
||||||
@@ -46,15 +48,18 @@ check:
|
|||||||
- cargo install cargo-cranky && cargo cranky
|
- cargo install cargo-cranky && cargo cranky
|
||||||
|
|
||||||
test:
|
test:
|
||||||
<<: *rust_cache
|
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
|
cache:
|
||||||
|
<<: *rust_cache
|
||||||
script:
|
script:
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
release:
|
release:
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
|
cache:
|
||||||
|
<<: *rust_cache
|
||||||
script:
|
script:
|
||||||
- make && make vendor
|
- make && make vendor
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -63,10 +68,11 @@ release:
|
|||||||
- cargo-config
|
- cargo-config
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
<<: *rust_cache
|
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
|
cache:
|
||||||
|
<<: *rust_cache
|
||||||
script:
|
script:
|
||||||
- cargo doc --document-private-items --no-deps --workspace
|
- cargo doc --document-private-items --no-deps --workspace
|
||||||
- rm -rf public
|
- rm -rf public
|
||||||
|
|||||||
Reference in New Issue
Block a user