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