Skip to content
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ xfmt = "xtask fmt-packages"
qa = "xtask run example qa-test"
xcheck = "run --quiet --package xtask --features=semver-checks --"
xrelease = "run --package xtask --features=release -- release"
xrel-check = "run --package xtask --features=rel-check -- rel-check"
71 changes: 71 additions & 0 deletions .github/workflows/pre-rel-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Check with a local registry.
#
# We want to check if we can compile examples/tests after bumping the deps by using a local registry.
# (i.e. if we will publish the right set of crates)

name: pre-release-checks

on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
check:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'release-pr')) }}

steps:
- uses: actions/checkout@v6

# Install the Rust toolchain for Xtensa devices:
- uses: esp-rs/[email protected]
with:
version: 1.92.0.0

# Install the Rust stable toolchain for RISC-V devices:
- uses: dtolnay/rust-toolchain@v1
with:
target: riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf
toolchain: stable
components: rust-src

# Install the Rust nightly toolchain for RISC-V devices:
- uses: dtolnay/rust-toolchain@v1
with:
target: riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf
toolchain: nightly
components: rust-src

- name: init-local-registry
run: |
cargo xrel-check init
cargo xrel-check update
cargo xrel-check scrap-path-deps

- name: try-build
shell: bash
run: |
# lints and docs are checked a couple of times already by other workflows
cargo xcheck ci esp32 --toolchain esp --no-lint --no-docs --no-check-crates
cargo xcheck ci esp32s2 --toolchain esp --no-lint --no-docs --no-check-crates
cargo xcheck ci esp32s3 --toolchain esp --no-lint --no-docs --no-check-crates
cargo xcheck ci esp32c2 --toolchain stable --no-lint --no-docs --no-check-crates
cargo xcheck ci esp32c3 --toolchain stable --no-lint --no-docs --no-check-crates
cargo xcheck ci esp32c6 --toolchain stable --no-lint --no-docs --no-check-crates
cargo xcheck ci esp32h2 --toolchain stable --no-lint --no-docs --no-check-crates

- name: try-build-tests
shell: bash
run: |
cargo xtask build tests esp32
cargo xtask build tests esp32s2
cargo xtask build tests esp32s3
cargo xtask build tests esp32c2
cargo xtask build tests esp32c3
cargo xtask build tests esp32c6
cargo xtask build tests esp32h2
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ exclude = [
"xtensa-lx",
"xtensa-lx-rt",
"xtensa-lx-rt-proc-macros",

"init-local-registry",
]
22 changes: 22 additions & 0 deletions init-local-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
edition = "2024"
name = "basic-c6"
rust-version = "1.88"
version = "0.1.0"

[dependencies]
esp-hal = "*"

esp-rtos = "*"

esp-bootloader-esp-idf = "*"

esp-storage = "*"

esp-alloc = "*"

esp-backtrace = "*"

esp-println = "*"

esp-radio = "*"
1 change: 1 addition & 0 deletions init-local-registry/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is used to seed the local registry with the latest version of selected crates.
1 change: 1 addition & 0 deletions init-local-registry/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// this is just here to make `cargo metadata` work
1 change: 1 addition & 0 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ preview-docs = ["dep:opener", "dep:rocket"]
semver-checks = [ "dep:cargo-semver-checks", "dep:flate2", "dep:temp-file", "dep:regex" ]
release = ["semver-checks", "dep:opener", "dep:urlencoding", "dep:regex"]
report = ["dep:regex"]
rel-check = ["dep:regex"]
2 changes: 2 additions & 0 deletions xtask/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pub mod generate_report;
pub(crate) mod generate_rom_symbols;
mod release;
mod run;
#[cfg(feature = "rel-check")]
pub mod relcheck;

// ----------------------------------------------------------------------------
// Subcommand Arguments
Expand Down
Loading
Loading