diff --git a/.tangled/workflows/test.yml b/.tangled/workflows/test.yml index a6bf09a..a668509 100644 --- a/.tangled/workflows/test.yml +++ b/.tangled/workflows/test.yml @@ -6,12 +6,26 @@ engine: nixery dependencies: nixpkgs: + - clang + - glibc_multi + - libclang - rustup + - rust-bindgen steps: - name: Install Nightly - command: rustup toolchain install nightly + command: | + rustup toolchain install nightly - name: Install toolchain - command: rustup +nightly target install thumbv7em-none-eabihf + command: | + rustup +nightly target install thumbv7em-none-eabihf + - name: Install flip-link + command: | + cargo install --locked flip-link - name: Format Check command: cargo fmt --check + - name: Build + command: | + export LIBCLANG_PATH="$(nix build nixpkgs#libclang.lib --no-link --print-out-paths)/lib" + export BINDGEN_EXTRA_CLANG_ARGS="-I$(nix build nixpkgs#glibc_multi.dev --no-link --print-out-paths)/include" + cargo build --release