Skip to content

Commit b473daf

Browse files
committed
patch example deps
1 parent 3697fff commit b473daf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: cargo check --features ${{ matrix.device }} --features ${{ matrix.features }}
4747
- name: Clippy
4848
run: cargo clippy --examples --features ${{ matrix.device }} --features ${{ matrix.features }}
49-
49+
5050
examples:
5151
runs-on: ubuntu-latest
5252
strategy:
@@ -64,6 +64,10 @@ jobs:
6464
toolchain: stable
6565
target: thumbv7em-none-eabihf
6666
override: true
67+
- name: Patch dependencies
68+
run: |
69+
echo "[patch.\"https://github.com/usbalbin/stm32g4xx-hal\"]" >> examples/stm32g4/Cargo.toml
70+
echo "stm32g4xx-hal = { git = ${{ github.event.pull_request.base.repo }}, rev = ${{ github.event.pull_request.base.ref }}, features = [\"defmt\", \"hrtim\"] }" >> examples/stm32g4/Cargo.toml
6771
- name: fmt
6872
run: cd examples/${{ matrix.family }}; cargo fmt --check
6973
- name: Build ${{ matrix.family }} examples

examples/stm32g4/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
1515
defmt-rtt = "0.4.0"
1616
cortex-m-rt = "0.7.2"
1717
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
18-
stm32g4xx-hal = { git = "https://github.com/usbalbin/stm32g4xx-hal", branch = "hrtim", features = ["defmt", "hrtim"] }
18+
stm32g4xx-hal = { git = "https://github.com/usbalbin/stm32g4xx-hal", branch = "hrtim", features = [
19+
"defmt",
20+
"hrtim",
21+
] }
1922
stm32-hrtim = { path = "../../", features = ["defmt"] }
2023
defmt = "1.0.1"
2124
fugit = "0.3.7"

0 commit comments

Comments
 (0)