Update .gitlab-ci.yml
This commit is contained in:
parent
847c34f31b
commit
f247a8facf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue