diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 318a007..efb1317 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,14 +6,19 @@ image: "rust:latest" #- apt-get update -yqq #- apt-get install -yqq mingw-w64 -# Use cargo to test the project +stages: +- test +- build + test:cargo: + stage: test script: - rustc --version && cargo --version # Print version info for debugging - cargo test --all --verbose build:linux: + stage: build script: - cargo build --release artifacts: @@ -21,6 +26,7 @@ build:linux: - target/release/per build:windows: + stage: build script: - mkdir .cargo && echo -e "[target.x86_64-pc-windows-gnu]\nlinker = \"x86_64-w64-mingw32-gcc\"\nar = \"x86_64-w64-mingw32-gcc-ar\"" > .cargo/config - apt-get update -yqq