Skip to content

Commit fb246db

Browse files
committed
test
1 parent c1d05ce commit fb246db

File tree

2 files changed

+39
-17
lines changed

2 files changed

+39
-17
lines changed

.github/workflows/pre-rel-check.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Check with a local registry.
2+
#
3+
# We want to check if we can compile examples/tests after bumping the deps by using a local registry.
4+
# (i.e. if we will publish the right set of crates)
5+
16
name: pre-release-checks
27

38
on:
@@ -46,10 +51,21 @@ jobs:
4651
shell: bash
4752
run: |
4853
# lints and docs are checked a couple of times already by other workflows
49-
cargo xcheck ci esp32 --toolchain esp --no-lint --no-docs
50-
cargo xcheck ci esp32s2 --toolchain esp --no-lint --no-docs
51-
cargo xcheck ci esp32s3 --toolchain esp --no-lint --no-docs
52-
cargo xcheck ci esp32c2 --toolchain stable --no-lint --no-docs
53-
cargo xcheck ci esp32c3 --toolchain stable --no-lint --no-docs
54-
cargo xcheck ci esp32c6 --toolchain stable --no-lint --no-docs
55-
cargo xcheck ci esp32h2 --toolchain stable --no-lint --no-docs
54+
cargo xcheck ci esp32 --toolchain esp --no-lint --no-docs --no-check-crates
55+
cargo xcheck ci esp32s2 --toolchain esp --no-lint --no-docs --no-check-crates
56+
cargo xcheck ci esp32s3 --toolchain esp --no-lint --no-docs --no-check-crates
57+
cargo xcheck ci esp32c2 --toolchain stable --no-lint --no-docs --no-check-crates
58+
cargo xcheck ci esp32c3 --toolchain stable --no-lint --no-docs --no-check-crates
59+
cargo xcheck ci esp32c6 --toolchain stable --no-lint --no-docs --no-check-crates
60+
cargo xcheck ci esp32h2 --toolchain stable --no-lint --no-docs --no-check-crates
61+
62+
- name: try-build-tests
63+
shell: bash
64+
run: |
65+
cargo xtask build tests esp32
66+
cargo xtask build tests esp32s2
67+
cargo xtask build tests esp32s3
68+
cargo xtask build tests esp32c2
69+
cargo xtask build tests esp32c3
70+
cargo xtask build tests esp32c6
71+
cargo xtask build tests esp32h2

xtask/src/main.rs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ struct CiArgs {
8080
/// Whether to skip building documentation
8181
#[arg(long)]
8282
no_docs: bool,
83+
84+
/// Whether to skip checking the crates itself
85+
#[arg(long)]
86+
no_check_crates: bool,
8387
}
8488

8589
#[derive(Debug, Args)]
@@ -539,16 +543,18 @@ fn run_ci_checks(workspace: &Path, args: CiArgs) -> Result<()> {
539543
std::env::set_var("CI", "true");
540544
}
541545

542-
runner.run("Check crates", || {
543-
check_packages(
544-
workspace,
545-
CheckPackagesArgs {
546-
packages: Package::iter().collect(),
547-
chips: vec![args.chip],
548-
toolchain: args.toolchain.clone(),
549-
},
550-
)
551-
});
546+
if !args.no_check_crates {
547+
runner.run("Check crates", || {
548+
check_packages(
549+
workspace,
550+
CheckPackagesArgs {
551+
packages: Package::iter().collect(),
552+
chips: vec![args.chip],
553+
toolchain: args.toolchain.clone(),
554+
},
555+
)
556+
});
557+
}
552558

553559
if !args.no_lint {
554560
runner.run("Lint", || {

0 commit comments

Comments
 (0)