tangled
alpha
login
or
join now
sachy.dev
/
sachy-parasite
1
fork
atom
Firmware for the b-parasite board, but in Rust.
1
fork
atom
overview
issues
pulls
pipelines
Use Zig and cargo-zigbuild for CI
sachy.dev
3 months ago
b655ffbe
7b421471
0/1
test.yml
failed
3m 37s
+17
-1
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
test.yml
Cargo.toml
+16
.tangled/workflows/test.yml
···
7
7
dependencies:
8
8
nixpkgs:
9
9
- rustup
10
10
+
- stdenv
11
11
+
- clang
12
12
+
- libclang
10
13
11
14
steps:
12
15
- name: Install Nightly
···
15
18
command: rustup +nightly target install thumbv7em-none-eabihf
16
19
- name: Format Check
17
20
command: cargo fmt --check
21
21
+
- name: Defmt Build
22
22
+
command: |
23
23
+
echo $(< $(nix eval --raw nixpkgs#libclang)/lib)
24
24
+
export LIBCLANG_PATH=$(< $(nix eval --raw nixpkgs#libclang)/lib)
25
25
+
export BINDGEN_EXTRA_CLANG_ARGS="$(< $(nix eval --raw nixpkgs#stdenv.cc)/nix-support/libc-crt1-cflags) \
26
26
+
$(< $(nix eval --raw nixpkgs#stdenv.cc)/nix-support/libc-cflags) \
27
27
+
$(< $(nix eval --raw nixpkgs#stdenv.cc)/nix-support/cc-cflags) \
28
28
+
$(< $(nix eval --raw nixpkgs#stdenv.cc)/nix-support/libcxx-cxxflags) \
29
29
+
-isystem $(nix eval --raw nixpkgs#stdenv.cc.cc)/include/c++/$(nix eval --raw nixpkgs#stdenv.cc.cc --apply '(builtins.getFlake "nixpkgs").lib.getVersion' --impure) \
30
30
+
-isystem $(nix eval --raw nixpkgs#stdenv.cc.cc)/include/c++/$(nix eval --raw nixpkgs#stdenv.cc.cc --apply '(builtins.getFlake "nixpkgs").lib.getVersion' --impure)/$(nix eval --raw nixpkgs#stdenv.hostPlatform.config) \
31
31
+
-idirafter $(nix eval --raw nixpkgs#stdenv.cc.cc)/lib/gcc/$(nix eval --raw nixpkgs#stdenv.hostPlatform.config)/$(nix eval --raw nixpkgs#stdenv.cc.cc --apply '(builtins.getFlake "nixpkgs").lib.getVersion' --impure)/include \
32
32
+
"
33
33
+
cargo build --release --locked
+1
-1
Cargo.toml
···
20
20
codegen-units = 1
21
21
22
22
[profile.release]
23
23
-
debug = false
23
23
+
debug = true
24
24
lto = true
25
25
opt-level = "z"
26
26
codegen-units = 1