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:30:51 -06:00
commit d1e701034b

View file

@ -1,12 +1,25 @@
run_test:
stages:
- test
- build
test:
stage: test
image: rust:latest
before_script:
- rustup --version
- rustc -vV
- rustup component add clippy
- rustup component add rustfmt
- apt install -y libfdisk-dev
- apt update -m
- apt install -y libfdisk-dev libclang-19-dev
script:
- cargo clippy -- --deny clippy::pedantic
- cargo fmt --all -- --check
- cargo test
- cargo test --verbose
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