Skip to content

Commit 5e83d62

Browse files
committed
ci: build the alloc-without-std permutation
No existing permutation compiles alloc without std, and --all-features enables std too, so the alloc-only paths in name.rs and gvar.rs were never built by CI.
1 parent 5d4a2bc commit 5e83d62

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
- name: Build with std
4040
run: cargo build --no-default-features --features=std
4141

42+
# No other permutation builds `alloc` without `std`, and `--all-features` enables
43+
# `std` too, so without this the alloc-only paths in `name.rs` and `gvar.rs` are
44+
# never compiled. `no-std-float` is required to satisfy the float guard.
45+
- name: Build with alloc and no std
46+
run: cargo build --no-default-features --features=alloc,no-std-float,variable-fonts,gvar-alloc
47+
4248
- name: Build with variable-fonts
4349
run: cargo build --no-default-features --features=variable-fonts,no-std-float
4450

0 commit comments

Comments
 (0)