Merge branch 'fix-ci' into 'master'

Change CI base image and fix test

See merge request redox-os/redox!1755
This commit is contained in:
Jeremy Soller 2025-12-09 06:25:46 -07:00
commit 95f17ffa07
3 changed files with 12 additions and 7 deletions

View File

@ -8,6 +8,7 @@ stages:
- test
fmt:
image: "rust:trixie"
stage: lint
rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_PROJECT_NAMESPACE == "redox-os"'
@ -17,6 +18,7 @@ fmt:
- cargo fmt -- --check
cargo-test:
image: "rust:trixie"
stage: lint
rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_PROJECT_NAMESPACE == "redox-os"'

View File

@ -21,7 +21,7 @@ use std::{
use crate::{is_redox, log_to_pty};
fn auto_deps_from_dynamic_linking(
stage_dirs: &Vec<PathBuf>,
stage_dirs: &[PathBuf],
target_dir: &Path,
dep_pkgars: &BTreeSet<(PackageName, PathBuf)>,
logger: &PtyOut,
@ -601,7 +601,7 @@ mod tests {
);
let entries = super::auto_deps_from_dynamic_linking(
&root,
&vec![root.clone()],
&root.join(".."),
&Default::default(),
&None,

View File

@ -15,7 +15,7 @@ use serde::{
use crate::{WALK_DEPTH, cook::package as cook_package};
/// Specifies how to download the source for a recipe
#[derive(Debug, Clone, Deserialize, PartialEq, Serialize)]
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
#[serde(untagged)]
pub enum SourceRecipe {
/// Reuse the source directory of another package
@ -450,7 +450,7 @@ mod tests {
#[test]
fn git_cargo_recipe() {
use crate::recipe::{BuildKind, BuildRecipe, PackageRecipe, Recipe, SourceRecipe};
use crate::recipe::{BuildKind, BuildRecipe, Recipe, SourceRecipe};
let recipe: Recipe = toml::from_str(
r#"
@ -470,9 +470,12 @@ mod tests {
Recipe {
source: Some(SourceRecipe::Git {
git: "https://gitlab.redox-os.org/redox-os/acid.git".to_string(),
upstream: None,
branch: Some("master".to_string()),
rev: Some("06344744d3d55a5ac9a62a6059cb363d40699bbc".to_string()),
..Default::default()
patches: Vec::new(),
script: None,
shallow_clone: None,
}),
build: BuildRecipe::new(BuildKind::Cargo {
package_path: None,
@ -485,7 +488,7 @@ mod tests {
#[test]
fn tar_custom_recipe() {
use crate::recipe::{BuildKind, BuildRecipe, PackageRecipe, Recipe, SourceRecipe};
use crate::recipe::{BuildKind, BuildRecipe, Recipe, SourceRecipe};
let recipe: Recipe = toml::from_str(
r#"
@ -544,7 +547,7 @@ mod tests {
build: BuildRecipe::new(BuildKind::None),
package: PackageRecipe {
dependencies: vec![PackageName::new("gcc13").unwrap()],
....Default::default()
..Default::default()
},
..Default::default()
}