From 2c543a73b620382425c9b7f923801dbe42326df4 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 30 Jul 2024 16:29:56 +1000 Subject: [PATCH] github/workflows/ci.yml: Try to fix CI Signed-off-by: Alistair Francis --- .github/workflows/ci.yml | 1 + src/libspdm/spdm.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b91ee8..14c09cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,7 @@ jobs: - name: Install dependencies run: | + sudo apt-get update; \ sudo apt-get install -y cmake libclang-dev libpci-dev libssl-dev python3-dev gem; \ sudo gem install cbor-diag; diff --git a/src/libspdm/spdm.rs b/src/libspdm/spdm.rs index 4413f19..8a0a815 100644 --- a/src/libspdm/spdm.rs +++ b/src/libspdm/spdm.rs @@ -1668,8 +1668,8 @@ unsafe fn libspdm_fill_measurement_image_hash_block( (*measurement_block) .measurement_block_common_header - .measurement_size = core::mem::size_of::() as u16 - + data.len() as u16; + .measurement_size = + core::mem::size_of::() as u16 + data.len() as u16; (measurement_block.add(1) as *mut u8).copy_from(data.as_ptr(), data.len());