remove unused dependencies & add GHA flow (#429)

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

View file

@ -2,7 +2,7 @@ on: [push, pull_request]
name: Build and Test check name: Build and Test check
jobs: jobs:
builds: builds:
name: "Build checks" name: Build checks
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
@ -16,26 +16,41 @@ jobs:
target: thumbv6m-none-eabi target: thumbv6m-none-eabi
override: true override: true
profile: minimal profile: minimal
- name: "Build workspace" - name: Build workspace
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: ${{ matrix.mode }} --workspace ${{ matrix.features }} args: ${{ matrix.mode }} --workspace ${{ matrix.features }}
- name: "Build workspace and examples" - name: Build workspace and examples
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: ${{ matrix.mode }} --workspace --examples ${{ matrix.features }} 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)' 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 uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --tests --target x86_64-unknown-linux-gnu ${{ matrix.features }} args: --tests --target x86_64-unknown-linux-gnu ${{ matrix.features }}
- name: "Test docs" - name: Test docs
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --doc --target x86_64-unknown-linux-gnu ${{ matrix.features }} 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" } rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
cortex-m-rt = { version = "0.7.0", optional = true } cortex-m-rt = { version = "0.7.0", optional = true }
embedded-hal = { version = "0.2.4", features = ["unproven"] } embedded-hal = { version = "0.2.4", features = ["unproven"] }
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
[dev-dependencies] [dev-dependencies]
panic-halt= "0.2.0" panic-halt= "0.2.0"

View file

@ -21,10 +21,6 @@ embedded-hal ="0.2.5"
[dev-dependencies] [dev-dependencies]
panic-halt= "0.2.0" panic-halt= "0.2.0"
nb = "1.0" nb = "1.0"
embedded-graphics = "0.7.1"
defmt = "0.3.0"
defmt-rtt = "0.3.0"
[features] [features]
default = ["boot2", "rt"] 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 } cortex-m-rt = { version = "0.7", optional = true }
fugit = "0.3.5" fugit = "0.3.5"
usb-device= "0.2.9" usb-device= "0.2.9"
usbd-serial = "0.1.1"
usbd-hid = "0.5.1"
futures = { version = "0.3", default-features = false, optional = true } futures = { version = "0.3", default-features = false, optional = true }
[dev-dependencies] [dev-dependencies]
@ -38,6 +36,8 @@ hd44780-driver = "0.4.0"
pio = "0.2.0" pio = "0.2.0"
pio-proc = "0.2.1" pio-proc = "0.2.1"
critical-section = "1.0.0" critical-section = "1.0.0"
usbd-serial = "0.1.1"
usbd-hid = "0.5.1"
defmt = "0.3.0" defmt = "0.3.0"
defmt-rtt = "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 } cortex-m-rt = { version = "0.7", optional = true }
fugit = "0.3.5" fugit = "0.3.5"
usb-device= "0.2.9" usb-device= "0.2.9"
usbd-serial = "0.1.1"
usbd-hid = "0.5.1"
futures = { version = "0.3", default-features = false, optional = true } futures = { version = "0.3", default-features = false, optional = true }
[dev-dependencies] [dev-dependencies]
panic-halt= "0.2.0" panic-halt= "0.2.0"
embedded-hal ="0.2.5" embedded-hal ="0.2.5"
cortex-m-rtic = "1.1.2"
nb = "1.0" nb = "1.0"
i2c-pio = "0.4.0"
heapless = "0.7.9"
smart-leds = "0.3.0" smart-leds = "0.3.0"
ws2812-pio = "0.4.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 = "0.2.0"
pio-proc = "0.2.1"
[features] [features]
default = ["boot2", "rt"] default = ["boot2", "rt"]

View file

@ -12,7 +12,6 @@ proc-macro = true
[dependencies] [dependencies]
quote = "1.0" quote = "1.0"
proc-macro2 = "1.0" proc-macro2 = "1.0"
cortex-m-rt = "0.7.0"
[dependencies.syn] [dependencies.syn]
features = ["extra-traits", "full"] features = ["extra-traits", "full"]