+16
-4
.tangled/workflows/test.yml
+16
-4
.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: Format Check
17
-
command: cargo fmt --check
20
+
command: |
21
+
rustup +nightly target install thumbv7em-none-eabihf
22
+
- name: Install flip-link
23
+
command: |
24
+
cargo install --locked flip-link
25
+
- name: Build
26
+
command: |
27
+
export LIBCLANG_PATH="$(nix build nixpkgs#libclang.lib --no-link --print-out-paths)/lib"
28
+
export BINDGEN_EXTRA_CLANG_ARGS="-I$(nix build nixpkgs#glibc_multi.dev --no-link --print-out-paths)/include"
29
+
cargo build --release