diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 990e0538..2e869285 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -110,6 +110,7 @@ jobs: rustup toolchain install stable cargo +stable install --force --locked bindgen-cli echo "$HOME/.cargo/bin" >> $GITHUB_PATH + echo BINDGEN_EXTRA_CLANG_ARGS='--sysroot /usr/arm-linux-gnueabihf' >> $GITHUB_ENV echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV echo "RUSTFLAGS=-C linker=arm-linux-gnueabihf-gcc -L/usr/arm-linux-gnueabihf/lib -L/build/sysroot/usr/lib/arm-linux-gnueabihf -L/build/sysroot/lib/arm-linux-gnueabihf" >> $GITHUB_ENV echo "C_INCLUDE_PATH=/build/sysroot/usr/include" >> $GITHUB_ENV @@ -132,6 +133,7 @@ jobs: cargo +stable install --force --locked bindgen-cli echo "/build/tools/arm-bcm2708/arm-linux-gnueabihf/bin" >> $GITHUB_PATH echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV + echo BINDGEN_EXTRA_CLANG_ARGS='--sysroot /usr/arm-linux-gnueabihf' >> $GITHUB_ENV echo "RUSTFLAGS=-C linker=/build/tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -L/build/tools/arm-bcm2708/arm-linux-gnueabihf/arm-linux-gnueabihf/sysroot/lib -L/build/tools/arm-bcm2708/arm-linux-gnueabihf/arm-linux-gnueabihf/sysroot/usr/lib -L/build/sysroot/usr/lib/arm-linux-gnueabihf -L/build/sysroot/lib/arm-linux-gnueabihf" >> $GITHUB_ENV echo "C_INCLUDE_PATH=/build/sysroot/usr/include" >> $GITHUB_ENV echo "OPENSSL_LIB_DIR=/build/sysroot/usr/lib/arm-linux-gnueabihf" >> $GITHUB_ENV