Skip to content

Commit

Permalink
Add a gitlab ci workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementwanjau committed Jul 11, 2024
1 parent b297ae9 commit 23e1ce8
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
default:
image: rust:latest
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- .cargo/bin
- .cargo/registry/index
- .cargo/registry/cache
- target/debug/deps
before_script:
- rustc --version

stages:
- source
- update dependencies
- build
- test

linting:
stage: source
script:
- rustup component add clippy
- cargo clippy --all-targets --all-features -- -Dwarnings

update-dependencies:
stage: update dependencies
script:
- cargo update

build:
stage: build
script:
- cargo install cargo-hack
- cargo hack check --feature-powerset --mutually-exclusive-features no_std,default --lib --tests --examples

test:
stage: test
script:
- cargo hack test --feature-powerset --mutually-exclusive-features no_std,default

0 comments on commit 23e1ce8

Please sign in to comment.