Skip to content
Snippets Groups Projects
Commit f01957f8 authored by Stephen D's avatar Stephen D
Browse files

add ci

parent 5d8bb9d6
No related branches found
No related tags found
No related merge requests found
image: "rust:latest"
stages:
- test
- build
before_script:
- apt-get update -q && apt-get install mingw-w64 -yqq
- rustup component add rustfmt
- rustup component add clippy
- rustup target add x86_64-pc-windows-gnu
test:
script:
- cargo fmt -- --check
- cargo clippy --all-targets --all-features -- -D warnings
- cargo test
build:
stage: build
script:
- cargo build --release
- cargo build --release --target x86_64-pc-windows-gnu
artifacts:
paths:
- target/release/minitransfer
- target/x86_64-pc-windows-gnu/release/minitransfer
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment