From a9b7a598a78705eb1a22c8526210fbc31fd931ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= <sosthene@nitrokey.com> Date: Tue, 12 Nov 2024 14:12:56 +0100 Subject: [PATCH] Attempt to fix CI compilation --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 581075a..3ab0ab2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: - name: Install build dependencies shell: bash run: | - env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev + env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev libnewlib-dev - uses: fiam/arm-none-eabi-gcc@v1 with: release: "9-2020-q2" @@ -35,7 +35,14 @@ jobs: with: submodules: true - - name: Check + - name: Check arm + if: matrix.target == 'thumbv7em-none-eabi' || matrix.target == 'thumbv6m-none-eabi' + run: | + BINDGEN_EXTRA_CLANG_ARGS='--sysroot=/usr/include/newlib' cargo check + BINDGEN_EXTRA_CLANG_ARGS='--sysroot=/usr/include/newlib' cargo check --all-features + + - name: Check x64 + if: matrix.target == 'x86_64-unknown-linux-gnu' run: | cargo check cargo check --all-features