+15
-9
.tangled/workflows/test.yml
+15
-9
.tangled/workflows/test.yml
···
6
6
7
7
dependencies:
8
8
nixpkgs:
9
+
- clang
10
+
- glibc_multi
11
+
- libclang
9
12
- rustup
13
+
- rust-bindgen
10
14
11
15
steps:
12
16
- name: Install Nightly
13
-
command: rustup toolchain install nightly
17
+
command: |
18
+
rustup toolchain install nightly
14
19
- name: Install toolchain
15
-
command: rustup +nightly target install thumbv7em-none-eabihf
16
-
- name: LLVM tools
17
-
command: rustup component add llvm-tools
20
+
command: |
21
+
rustup +nightly target install thumbv7em-none-eabihf
18
22
- name: Install flip-link
19
-
command: cargo install --locked flip-link
23
+
command: |
24
+
cargo install --locked flip-link
20
25
- name: Format Check
21
26
command: cargo fmt --check
22
-
- name: Check Defmt Build
23
-
command: cargo build --release
24
-
- name: Check Plain Build
25
-
command: cargo build --release --no-default-features
27
+
- name: Build
28
+
command: |
29
+
export LIBCLANG_PATH="$(nix build nixpkgs#libclang.lib --no-link --print-out-paths)/lib"
30
+
export BINDGEN_EXTRA_CLANG_ARGS="-I$(nix build nixpkgs#glibc_multi.dev --no-link --print-out-paths)/include"
31
+
cargo build --release