Fix build GUI and add CI check

This commit is contained in:
Wildan M
2026-07-03 14:59:57 +07:00
parent e249630e51
commit 5b2f2ecd53
2 changed files with 12 additions and 2 deletions
+11 -1
View File
@@ -1,4 +1,3 @@
image: "rust:latest"
stages:
- lint
@@ -10,15 +9,26 @@ workflow:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
fmt:
image: "rust:latest"
stage: lint
script:
- rustup component add rustfmt
- cargo fmt -- --check
- cd gui && cargo fmt -- --check
cargo-test:
image: "rust:latest"
stage: test
script:
- apt update && apt install -y fuse3 libfuse3-dev
- cargo build --locked
- cargo test
- ./target/debug/redox_installer -c res/test.toml test.bin --no-mount
gui-build:
stage: test
script:
- apt update && apt install -y fuse3 libfuse3-dev
- cd gui
- redoxer build
- cargo build
+1 -1
View File
@@ -75,7 +75,7 @@ pub fn disk_paths() -> Result<Vec<(String, bool, u64)>, String> {
let Ok(metadata) = entry.metadata() else {
continue;
};
let is_partition = file_name.contains(p);
let is_partition = file_name.contains('p');
let size = metadata.len();
if size == 0 {
continue;