mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
mario
This commit is contained in:
parent
93e76db0eb
commit
ef2be5c559
1 changed files with 9 additions and 30 deletions
|
@ -1,32 +1,11 @@
|
||||||
image: "rust:latest"
|
run_test:
|
||||||
|
image: rust:latest
|
||||||
tests-job:
|
before_script:
|
||||||
stage: test
|
- rustup --version
|
||||||
image: rust
|
- rustc -vV
|
||||||
|
- rustup component add clippy
|
||||||
|
- rustup component add rustfmt
|
||||||
script:
|
script:
|
||||||
- echo "======== TESTS JOB ========"
|
- cargo clippy -- --deny clippy::pedantic
|
||||||
|
- cargo fmt --all -- --check
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
prepare-job:
|
|
||||||
stage: prepare
|
|
||||||
image: rust
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_TAG
|
|
||||||
when: never # Do not run this job when a tag is created manually
|
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
|
|
||||||
script:
|
|
||||||
- echo "======== PREPARE JOB ========"
|
|
||||||
|
|
||||||
build-job:
|
|
||||||
stage: build
|
|
||||||
image: ubuntu:22.04
|
|
||||||
needs:
|
|
||||||
- job: tests-job
|
|
||||||
- job: prepare-job
|
|
||||||
artifacts: true
|
|
||||||
script:
|
|
||||||
- echo "======== BUILD JOB ========"
|
|
||||||
- cargo build --release
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- target/release/nyxi-installer
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue