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
cdeb6090
7b421471
0/1
test.yml
failed
3m 44s
+18
-1
2 changed files
expand all
collapse all
unified
split
.tangled
workflows
test.yml
Cargo.toml
+17
.tangled/workflows/test.yml
···
7
7
dependencies:
8
8
nixpkgs:
9
9
- rustup
10
10
+
- clang
11
11
+
- libclang
10
12
11
13
steps:
14
14
+
- name: Env Setup
15
15
+
command: |
16
16
+
export BINDGEN_EXTRA_CLANG_ARGS="$(< $(nix eval --raw nixpkgs#stdenv.cc)/nix-support/libc-crt1-cflags) \
17
17
+
$(< $(nix eval --raw nixpkgs#stdenv.cc)/nix-support/libc-cflags) \
18
18
+
$(< $(nix eval --raw nixpkgs#stdenv.cc)/nix-support/cc-cflags) \
19
19
+
$(< $(nix eval --raw nixpkgs#stdenv.cc)/nix-support/libcxx-cxxflags) \
20
20
+
-isystem $(nix eval --raw nixpkgs#stdenv.cc.cc)/include/c++/$(nix eval --raw nixpkgs#stdenv.cc.cc --apply '(builtins.getFlake "nixpkgs").lib.getVersion' --impure) \
21
21
+
-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) \
22
22
+
-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 \
23
23
+
"
24
24
+
export LIBCLANG_PATH=$(nix eval --raw nixpkgs#libclang.lib)
12
25
- name: Install Nightly
13
26
command: rustup toolchain install nightly
14
27
- name: Install toolchain
15
28
command: rustup +nightly target install thumbv7em-none-eabihf
16
29
- name: Format Check
17
30
command: cargo fmt --check
31
31
+
- name: Defmt Build
32
32
+
command: cargo build --release --locked
33
33
+
- name: Plain Build
34
34
+
command: cargo build --release --locked --no-default-features
+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