Skip to content

Commit

Permalink
Add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter committed Apr 8, 2024
1 parent 2b393e1 commit c04d9e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion example/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async fn main(_spawner: Spawner) {
const MAP_FLASH_RANGE: Range<u32> = 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();
Expand Down

0 comments on commit c04d9e7

Please sign in to comment.