-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
31 changed files
with
804 additions
and
577 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,28 @@ jobs: | |
env: | ||
CARGO_PROFILE_RELEASE_DEBUG: true | ||
|
||
- name: Run hyperfine | ||
- name: Run parser (and stringer) performance | ||
run: | | ||
curl -O https://gist.githubusercontent.com/kaleidawave/9554eb0ec0a2efc5727a3227fe997c8d/raw/6445ec1b802b52081e6dbb9c3a99e6de3f33dcfa/example.js | ||
hyperfine './target/release/ezno build example.js' | ||
curl https://esm.sh/v128/[email protected]/es2022/react-dom.mjs > react.js | ||
echo "### Hyperfine">> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`shell">> $GITHUB_STEP_SUMMARY | ||
hyperfine './target/release/ezno ast-explorer --file react.js uglifier' >> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
- name: Run checker performance | ||
run: | | ||
curl -O https://gist.githubusercontent.com/kaleidawave/5dcb9ec03deef1161ebf0c9d6e4b88d8/raw/26c26e908a7c6b79a2e93627f1fefa7ffccbd389/demo.ts > demo.ts | ||
echo "### Output">> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`shell">> $GITHUB_STEP_SUMMARY | ||
./target/release/ezno check demo.ts >> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
echo "### Hyperfine">> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`shell">> $GITHUB_STEP_SUMMARY | ||
hyperfine './target/release/ezno check demo.ts' >> $GITHUB_STEP_SUMMARY | ||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
- name: Print (linux) binary size | ||
run: | | ||
echo "Binary is $(stat -c %s ./target/release/ezno) bytes" | ||
echo "Binary is $(stat -c %s ./target/release/ezno) bytes" >> $GITHUB_STEP_SUMMARY |
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 |
---|---|---|
|
@@ -46,6 +46,8 @@ jobs: | |
- 'parser/**' | ||
checker: | ||
- 'checker/**' | ||
src: | ||
- 'src/**' | ||
- name: Check source is valid | ||
run: cargo check --workspace | ||
|
@@ -54,9 +56,11 @@ jobs: | |
run: cargo check --bin ezno | ||
|
||
- uses: brndnmtthws/rust-action-cargo-binstall@v1 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
packages: [email protected] | ||
- name: Check WASM | ||
if: steps.changes.outputs.src == 'true' | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
# Need to build to check that the JS builds | ||
|
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
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
Oops, something went wrong.