nyxi-installer/.gitlab-ci.yml
Aaron Honeycutt 93e76db0eb testing ci
2025-04-23 19:05:10 -06:00

32 lines
718 B
YAML

image: "rust:latest"
tests-job:
stage: test
image: rust
script:
- echo "======== TESTS JOB ========"
- 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