1
0
Fork 0
mirror of https://github.com/italicsjenga/rp-hal-boards.git synced 2025-01-10 20:41:31 +11:00

remove unused dependencies & add GHA flow ()

This commit is contained in:
Wilfried Chauveau 2022-08-26 03:42:33 +01:00 committed by GitHub
parent 3261eccd4d
commit 13cad64c29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 23 deletions
.github/workflows
boards
arduino_nano_connect
pimoroni-badger2040
rp-pico
vcc-gnd-yd-rp2040
rp2040-hal-macros

View file

@ -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:
@ -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 }}

View file

@ -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"

View file

@ -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"]

View file

@ -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]
@ -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"

View file

@ -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"]

View file

@ -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"]