File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 3030 uses : actions/checkout@v4
3131 if : ${{ matrix.target == 'pr' }}
3232
33- - name : Write Optimisation Flags
34- run : |
35- echo 'build-std = ["std", "panic_abort"]' >> .cargo/config.toml
36- echo 'build-std-features = ["panic_immediate_abort"]' >> .cargo/config.toml
37- echo '[build]' >> .cargo/config.toml
38- echo 'rustflags = ["-Cpanic=abort"]' >> .cargo/config.toml
39-
4033 - name : Setup toolchain
4134 uses : dtolnay/rust-toolchain@master
4235 with :
5447 with :
5548 version : " latest"
5649
50+ - name : Build examples tool
51+ run : cargo build --release -p build-examples --bin build-examples
52+
53+ - name : Clean wasm32 target to avoid conflicts
54+ run : rm -rf target/wasm32-unknown-unknown
55+
56+ - name : Write Optimisation Flags
57+ run : |
58+ echo 'build-std = ["std", "panic_abort"]' >> .cargo/config.toml
59+ echo 'build-std-features = ["panic_immediate_abort"]' >> .cargo/config.toml
60+ echo '[build]' >> .cargo/config.toml
61+ echo 'rustflags = ["-Cpanic=abort"]' >> .cargo/config.toml
62+
5763 - name : Build examples
58- run : cargo run -p build-examples --bin build-examples
64+ run : ./target/release/ build-examples
5965
6066 - name : Collect size information
6167 run : python3 ci/collect_sizes.py
You can’t perform that action at this time.
0 commit comments