[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

ref(opt): use -0z and wasm-opt

Nate Moore (May 28, 2026, 1:20 AM EDT) 53fd3da6 41392126

+24 -1
+3
.github/workflows/preview.yml
··· 26 26 with: 27 27 deno-version: v2.x 28 28 29 + - name: install binaryen 30 + run: sudo apt-get install -y binaryen 31 + 29 32 - name: build wasm 30 33 run: make 31 34
+9
.github/workflows/publish.yml
··· 23 23 with: 24 24 deno-version: v2.x 25 25 26 + - name: install binaryen 27 + run: sudo apt-get install -y binaryen 28 + 26 29 - name: build wasm 27 30 run: make 28 31 ··· 51 54 uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4 52 55 with: 53 56 deno-version: v2.x 57 + 58 + - name: install binaryen 59 + run: sudo apt-get install -y binaryen 54 60 55 61 - name: build wasm 56 62 run: make ··· 124 130 uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4 125 131 with: 126 132 deno-version: v2.x 133 + 134 + - name: install binaryen 135 + run: sudo apt-get install -y binaryen 127 136 128 137 - name: build wasm 129 138 run: make
+9
.github/workflows/verify.yaml
··· 37 37 - name: lint 38 38 run: deno lint 39 39 40 + - name: install binaryen 41 + run: sudo apt-get install -y binaryen 42 + 40 43 - name: build wasm 41 44 run: make 42 45 ··· 97 100 with: 98 101 deno-version: v2.x 99 102 103 + - name: install binaryen 104 + run: sudo apt-get install -y binaryen 105 + 100 106 - name: build wasm 101 107 run: make 102 108 ··· 125 131 uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 126 132 with: 127 133 node-version: 24 134 + 135 + - name: install binaryen 136 + run: sudo apt-get install -y binaryen 128 137 129 138 - name: build wasm 130 139 run: make
+3 -1
Makefile
··· 1 1 CC = clang 2 + WASM_OPT ?= wasm-opt 2 3 TARGET = clayterm.wasm 3 4 SRC = src/module.c 4 5 5 - CFLAGS = --target=wasm32 -nostdlib -O2 \ 6 + CFLAGS = --target=wasm32 -nostdlib -Oz \ 6 7 -ffunction-sections -fdata-sections \ 7 8 -mbulk-memory \ 8 9 -DCLAY_IMPLEMENTATION -DCLAY_WASM \ ··· 48 49 49 50 $(TARGET): $(DEPS) 50 51 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) 52 + $(WASM_OPT) -Oz --enable-bulk-memory -o $@ $@ 51 53 52 54 wasm.ts: $(TARGET) 53 55 deno run --allow-read --allow-write tasks/bundle-wasm.ts