mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 02:54:03 -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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue