Merge branch 'ci' into 'main'

Feat: Enable CI builds

See merge request ahoneybun/nyxi-installer!24
This commit is contained in:
Aaron Honeycutt 2025-04-23 20:35:38 -06:00
commit 2ce9080350

View file

@ -1,12 +1,25 @@
run_test: stages:
- test
- build
test:
stage: test
image: rust:latest image: rust:latest
before_script: before_script:
- rustup --version - apt update -m
- rustc -vV - apt install -y libfdisk-dev libclang-19-dev
- rustup component add clippy
- rustup component add rustfmt
- apt install -y libfdisk-dev
script: script:
- cargo clippy -- --deny clippy::pedantic - cargo test --verbose
- cargo fmt --all -- --check
- cargo test build:
stage: build
image: rust:latest
before_script:
- apt update -m
- apt install -y libfdisk-dev libclang-19-dev
script:
- cargo build --release --verbose
- chmod +x /builds/ahoneybun/nyxi-installer/target/release/nyxi-installer
artifacts:
paths:
- /builds/ahoneybun/nyxi-installer/target/release/nyxi-installer