-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update examples and their builds in CI (#2652)
- Remove agents example - Agents example is replaced by web_worker_fib as they both serve the same purpose now that trunk 0.15 has been released - Clean up CI setup and ensure that examples are deployed in publish-examples.yml as they're built in size-cmp.yml
- Loading branch information
Showing
25 changed files
with
164 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Must be run from root of the repo: | ||
# yew $ ./ci/build-examples.sh | ||
|
||
output="$(pwd)/dist" | ||
mkdir "$output" | ||
|
||
for path in examples/*; do | ||
if [[ ! -d $path ]]; then | ||
continue | ||
fi | ||
|
||
example=$(basename "$path") | ||
|
||
# ssr does not need trunk | ||
if [[ "$example" == "simple_ssr" || "$example" == "ssr_router" ]]; then | ||
continue | ||
fi | ||
|
||
echo "building: $example" | ||
( | ||
# we are sure that $path exists | ||
# shellcheck disable=SC2164 | ||
cd "$path" | ||
dist_dir="$output/$example" | ||
|
||
echo trunk build --release --dist "$dist_dir" --public-url "$PUBLIC_URL_PREFIX$example" | ||
) | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Must be run from root of the repo: | ||
# yew $ ./ci/write-optimisation-flags.sh | ||
|
||
# this goes in [unstable] section | ||
cat >> .cargo/config << EOF | ||
build-std = ["std", "panic_abort"] | ||
build-std-features = ["panic_immediate_abort"] | ||
EOF | ||
cat >> Cargo.toml << EOF | ||
[profile.release] | ||
lto = true | ||
codegen-units = 1 | ||
panic = "abort" | ||
opt-level = "z" | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3159424
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yew master branch benchmarks (Lower is better)
yew-struct-keyed 01_run1k
172.02
160.2375
1.07
yew-struct-keyed 02_replace1k
181.7675
176.125
1.03
yew-struct-keyed 03_update10th1k_x16
396.412
349.404
1.13
yew-struct-keyed 04_select1k
60.592
63.227999999999994
0.96
yew-struct-keyed 05_swap1k
87.043
72.81700000000001
1.20
yew-struct-keyed 06_remove-one-1k
26.724
25.8765
1.03
yew-struct-keyed 07_create10k
2914.058
2784.907
1.05
yew-struct-keyed 08_create1k-after1k_x2
408.0675
389.4
1.05
yew-struct-keyed 09_clear1k_x8
187.7715
176.356
1.06
yew-struct-keyed 21_ready-memory
1.457233428955078
1.457233428955078
1
yew-struct-keyed 22_run-memory
1.6929817199707031
1.6942291259765625
1.00
yew-struct-keyed 23_update5-memory
1.6955795288085938
1.6755828857421875
1.01
yew-struct-keyed 24_run5-memory
1.9444847106933592
1.9438438415527344
1.00
yew-struct-keyed 25_run-clear-memory
1.32781982421875
1.3279914855957031
1.00
yew-struct-keyed 31_startup-ci
1881.465
1731.1239999999998
1.09
yew-struct-keyed 32_startup-bt
28.807999999999996
28.304
1.02
yew-struct-keyed 33_startup-mainthreadcost
228.412
211.08
1.08
yew-struct-keyed 34_startup-totalbytes
328.7421875
328.7373046875
1.00
This comment was automatically generated by workflow using github-action-benchmark.