From c04d9e7d68439ed3bf8306d7734631b6aaf47c7d Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Mon, 8 Apr 2024 15:23:14 +0200 Subject: [PATCH] Add cache --- .github/workflows/ci.yaml | 6 ++++++ example/src/main.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 06194f5..db1dceb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -61,6 +61,12 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: '0' + - uses: actions/cache@v3 + id: cache-cargo + with: + path: | + ./example/target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build new binary working-directory: ./example run: cargo build --release diff --git a/example/src/main.rs b/example/src/main.rs index e04aed1..185edeb 100644 --- a/example/src/main.rs +++ b/example/src/main.rs @@ -20,7 +20,7 @@ async fn main(_spawner: Spawner) { const MAP_FLASH_RANGE: Range = 0xFC000..0x100000; run_queue(&mut flash, QUEUE_FLASH_RANGE).await; - // run_map(&mut flash, MAP_FLASH_RANGE).await; + run_map(&mut flash, MAP_FLASH_RANGE).await; defmt::info!("All went ok!"); cortex_m::asm::bkpt();