Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GitLab CI - Rust setup
image: rust
test:
script:
- rustc --version
- cargo --version
- cargo test
- rustup component add rustfmt
- cargo fmt -- --check
- rustup component add clippy
- cargo clippy -- -D warnings
- cargo install cargo-audit
- cargo audit
@LukeMathWalker

This comment has been minimized.

Copy link
Owner Author

@LukeMathWalker LukeMathWalker commented Jun 7, 2020

Courtesy of Alan Faloon.

@ColmanHumphrey

This comment has been minimized.

Copy link

@ColmanHumphrey ColmanHumphrey commented Oct 2, 2020

This is very short and neat compared to the github actions version, which I assume is because the actions version has many more bells and whistles (scheduling, toolchain specification etc). Does anyone know how would a feature-matched gitlab-ci yaml file compare?

@LukeMathWalker

This comment has been minimized.

Copy link
Owner Author

@LukeMathWalker LukeMathWalker commented Oct 2, 2020

The big difference with the GitHub actions version is caching and parallelism - I am not a GitLab user, but I'd be happy to host a more optimised version if provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.