Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #3019

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

test #3019

Show file tree
Hide file tree
Changes from all 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
24 changes: 23 additions & 1 deletion .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
path: target/aarch64-unknown-linux-gnu/release/smoke_tester

- name: Build probe-rs
run: cross build --release --target aarch64-unknown-linux-gnu -p probe-rs-tools
run: cross build --release --target aarch64-unknown-linux-gnu -p probe-rs-tools --features ci

- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -90,3 +90,25 @@ jobs:
if [ -n "$EMBEDDED_TEST_RUNNER" ]; then
. $EMBEDDED_TEST_RUNNER
fi

benchmark:
runs-on: ["self-hosted", "linux", "ARM64", "${{ matrix.runner }}"]
strategy:
matrix:
runner: ["smoke-tester-2"]
env:
RUN_ID: ${{ github.run_id }}

needs: [build, test, embedded-test]

steps:
- uses: actions/download-artifact@v4
with:
name: probe-rs

- name: Run benchmark
run: |
chmod +x probe-rs
./probe-rs benchmark --chip stm32f429zitx --probe "0403:6010:FT929K9H" --address 0x20000000 --word-size 32 --iterations 5
./probe-rs benchmark --chip stm32f051r8tx --probe "1366:0101:000778807372" --address 0x20000000 --word-size 32 --iterations 5
./probe-rs benchmark --chip stm32l432kcux --probe "0483:374b:0664FF505271754867105124" --address 0x20000000 --word-size 32 --iterations 5
108 changes: 108 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions probe-rs-tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ zip = { version = "2.0.0", default-features = false, features = [
urlencoding = "2"
probe-rs-debug = { version = "0.25.0", path = "../probe-rs-debug" }

reqwest = { version = "0.12", optional = true, default-features = false, features = [
"rustls-tls",
"charset",
"http2",
"macos-system-configuration",
"blocking",
"json",
] }
chrono = { version = "0.4", optional = true, features = ["serde"] }

[features]
default = ["ci"]
ci = ["dep:reqwest", "dep:chrono"]

[build-dependencies]
git-version = "0.3"

Expand Down
Loading
Loading