From 0897649d17064f480ba31cb0f59c7ba58d7abb1a Mon Sep 17 00:00:00 2001 From: neema-orual Date: Sun, 3 Mar 2024 16:56:49 -0500 Subject: [PATCH] Fixing what caused the CI to fail --- .github/workflows/test.yml | 14 ++++++++++++-- embedded-hal-ext/src/digital.rs | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0fa26f8..27e04b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,14 +14,20 @@ jobs: steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@beta - - run: cargo test --workspace + with: + target: aarch64-unknown-linux-gnu + - run: cargo test --workspace --target aarch64-unknown-linux-gnu + - uses: Swatinem/rust-cache@v2 test-all-features: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@beta - - run: cargo test --workspace --all-features + with: + target: aarch64-unknown-linux-gnu + - run: cargo test --workspace --all-features --target aarch64-unknown-linux-gnu + - uses: Swatinem/rust-cache@v2 build-raspi-64bit: runs-on: ubuntu-latest @@ -35,6 +41,7 @@ jobs: --workspace --target aarch64-unknown-linux-gnu --all-features + - uses: Swatinem/rust-cache@v2 build-raspi-32bit: runs-on: ubuntu-latest @@ -48,6 +55,7 @@ jobs: --workspace --target armv7-unknown-linux-gnueabihf --all-features + - uses: Swatinem/rust-cache@v2 build-raspi-zero: runs-on: ubuntu-latest @@ -61,6 +69,7 @@ jobs: --workspace --target arm-unknown-linux-gnueabihf --all-features + - uses: Swatinem/rust-cache@v2 build-nostd: runs-on: ubuntu-latest @@ -74,4 +83,5 @@ jobs: -p embedded-hal-ext --target thumbv7m-none-eabi --features async,defmt-03 + - uses: Swatinem/rust-cache@v2 diff --git a/embedded-hal-ext/src/digital.rs b/embedded-hal-ext/src/digital.rs index 011880b..7eecffb 100644 --- a/embedded-hal-ext/src/digital.rs +++ b/embedded-hal-ext/src/digital.rs @@ -307,7 +307,7 @@ impl Event for &mut T { #[cfg(feature = "async")] #[inline] async fn wait_for(self: &mut Self, event: PinEvent) -> Result { - T::wait_for(e) + T::wait_for(event) } }