File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
Expand file tree Collapse file tree 1 file changed +15
-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 :
@@ -47,13 +40,27 @@ jobs:
4740 - name : Restore Rust cache for master
4841 uses : Swatinem/rust-cache@v2
4942 with :
50- shared-key : size-compare
43+ key : size-compare-${{ matrix.target }}
44+ cache-targets : " false"
5145
5246 - name : Setup Trunk
5347 uses : jetli/trunk-action@v0.5.1
5448 with :
5549 version : " latest"
5650
51+ - name : Build examples tool
52+ run : cargo build --release -p build-examples --bin build-examples
53+
54+ - name : Clean all build artifacts before applying build-std
55+ run : cargo clean
56+
57+ - name : Write Optimisation Flags
58+ run : |
59+ echo 'build-std = ["std", "panic_abort"]' >> .cargo/config.toml
60+ echo 'build-std-features = ["panic_immediate_abort"]' >> .cargo/config.toml
61+ echo '[build]' >> .cargo/config.toml
62+ echo 'rustflags = ["-Cpanic=abort"]' >> .cargo/config.toml
63+
5764 - name : Build examples
5865 run : cargo run -p build-examples --bin build-examples
5966
You can’t perform that action at this time.
0 commit comments