mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
testing ci
This commit is contained in:
parent
3f0a2b1702
commit
62f1c96f5b
1 changed files with 12 additions and 24 deletions
|
@ -1,27 +1,15 @@
|
||||||
image: "rust:latest"
|
image: "rust:latest"
|
||||||
|
|
||||||
variables:
|
build-job:
|
||||||
# move cargo data into the project directory so it can be cached
|
stage: build
|
||||||
CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
|
image: ubuntu:22.04
|
||||||
# treat compiler warnings as errors (in clippy, when running tests, etc.)
|
needs:
|
||||||
RUSTFLAGS: -Dwarnings
|
- job: tests-job
|
||||||
|
- job: prepare-job
|
||||||
default:
|
artifacts: true
|
||||||
# cancel the job if a newer pipeline starts for the same MR or branch
|
|
||||||
interruptible: true
|
|
||||||
cache:
|
|
||||||
# use the git branch or tag as cache key, so the cache will be
|
|
||||||
# shared among CI runs for the same branch or tag
|
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
|
||||||
# we cache .cargo/ and target/, which effectively enables
|
|
||||||
# incremental builds across different executions of the CI
|
|
||||||
# for the same branch or the same merge request
|
|
||||||
paths:
|
|
||||||
- .cargo
|
|
||||||
- target
|
|
||||||
|
|
||||||
# a format check is run in parallel with the rest
|
|
||||||
cargo:fmt:
|
|
||||||
script:
|
script:
|
||||||
- rustup component add rustfmt
|
- echo "======== BUILD JOB ========"
|
||||||
- cargo fmt --check
|
- cargo build --release
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- target/release/nyxi-installer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue