Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Feb 11, 2025
1 parent db70e3d commit 7499818
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
name: esp-hal (${{ matrix.device.soc }})
runs-on: ubuntu-latest
env:
CARGO_TARGET_DIR: ${GITHUB_WORKSPACE}/target
CARGO_TARGET_DIR: ${{ github.workspace }}/target
SSID: SSID
PASSWORD: PASSWORD
STATIC_IP: 1.1.1.1
Expand Down
14 changes: 4 additions & 10 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,19 +1042,13 @@ fn lint_package(chip: &Chip, path: &Path, args: &[&str], fix: bool) -> Result<()
builder = builder.arg(arg.to_string());
}

// build in release to reuse example artifacts
let cargo_args = builder.arg("--release");
let cargo_args = if fix {
cargo_args.arg("--fix").arg("--lib").arg("--allow-dirty")
let builder = if fix {
builder.arg("--fix").arg("--lib").arg("--allow-dirty")
} else {
cargo_args
.arg("--")
.arg("-D")
.arg("warnings")
.arg("--no-deps")
builder.arg("--").arg("-D").arg("warnings").arg("--no-deps")
};

let cargo_args = cargo_args.build();
let cargo_args = builder.build();

xtask::cargo::run(&cargo_args, path)
}
Expand Down

0 comments on commit 7499818

Please sign in to comment.