Skip to content
Merged
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
27 changes: 21 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on: [push, pull_request]
name: Build and Test check
jobs:
builds:
name: "Build checks"
name: Build checks
runs-on: ubuntu-20.04
strategy:
matrix:
Expand All @@ -16,26 +16,41 @@ jobs:
target: thumbv6m-none-eabi
override: true
profile: minimal
- name: "Build workspace"
- name: Build workspace
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.mode }} --workspace ${{ matrix.features }}
- name: "Build workspace and examples"
- name: Build workspace and examples
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.mode }} --workspace --examples ${{ matrix.features }}
- name: "List built examples and clean"
- name: List built examples and clean
run: rm -vrf target/thumbv6m-none-eabi/*/examples/* | sed -e "s/removed '\(.*\)'/\1/" | xargs -l basename | grep -Ev '(-|\.d)'
- name: "Test"
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --tests --target x86_64-unknown-linux-gnu ${{ matrix.features }}
- name: "Test docs"
- name: Test docs
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --target x86_64-unknown-linux-gnu ${{ matrix.features }}
- name: Clean
uses: actions-rs/cargo@v1
with:
command: clean
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: thumbv6m-none-eabi
override: true
profile: minimal
- name: Check unused deps
uses: aig787/cargo-udeps-action@v1
with:
version: latest
args: ${{ matrix.mode }} --workspace ${{ matrix.features }}

1 change: 0 additions & 1 deletion boards/arduino_nano_connect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ rp2040-boot2 = { version = "0.2.0", optional = true }
rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
cortex-m-rt = { version = "0.7.0", optional = true }
embedded-hal = { version = "0.2.4", features = ["unproven"] }
panic-probe = { version = "0.3.0", features = ["print-defmt"] }

[dev-dependencies]
panic-halt= "0.2.0"
Expand Down
4 changes: 0 additions & 4 deletions boards/pimoroni-badger2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ embedded-hal ="0.2.5"
[dev-dependencies]
panic-halt= "0.2.0"
nb = "1.0"
embedded-graphics = "0.7.1"

defmt = "0.3.0"
defmt-rtt = "0.3.0"

[features]
default = ["boot2", "rt"]
Expand Down
4 changes: 2 additions & 2 deletions boards/rp-pico/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
cortex-m-rt = { version = "0.7", optional = true }
fugit = "0.3.5"
usb-device= "0.2.9"
usbd-serial = "0.1.1"
usbd-hid = "0.5.1"
futures = { version = "0.3", default-features = false, optional = true }

[dev-dependencies]
Expand All @@ -38,6 +36,8 @@ hd44780-driver = "0.4.0"
pio = "0.2.0"
pio-proc = "0.2.1"
critical-section = "1.0.0"
usbd-serial = "0.1.1"
usbd-hid = "0.5.1"

defmt = "0.3.0"
defmt-rtt = "0.3.0"
Expand Down
9 changes: 0 additions & 9 deletions boards/vcc-gnd-yd-rp2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,15 @@ rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
cortex-m-rt = { version = "0.7", optional = true }
fugit = "0.3.5"
usb-device= "0.2.9"
usbd-serial = "0.1.1"
usbd-hid = "0.5.1"
futures = { version = "0.3", default-features = false, optional = true }

[dev-dependencies]
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
cortex-m-rtic = "1.1.2"
nb = "1.0"
i2c-pio = "0.4.0"
heapless = "0.7.9"
smart-leds = "0.3.0"
ws2812-pio = "0.4.0"
ssd1306 = "0.7.0"
embedded-graphics = "0.7.1"
hd44780-driver = "0.4.0"
pio = "0.2.0"
pio-proc = "0.2.1"

[features]
default = ["boot2", "rt"]
Expand Down
1 change: 0 additions & 1 deletion rp2040-hal-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ proc-macro = true
[dependencies]
quote = "1.0"
proc-macro2 = "1.0"
cortex-m-rt = "0.7.0"

[dependencies.syn]
features = ["extra-traits", "full"]
Expand Down