mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Merge branch 'ci' into 'main'
Feat: Enable CI builds See merge request ahoneybun/nyxi-installer!24
This commit is contained in:
commit
2ce9080350
1 changed files with 22 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue