forked from bluealloy/revm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'cecilia/serde-no-std' into sync-taiko-v3.5
- Loading branch information
Showing
156 changed files
with
13,927 additions
and
8,873 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Valgrind Cachegrind | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
valgrind: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup | Rust | ||
uses: ATiltedTree/setup-rust@v1 | ||
with: | ||
rust-version: stable | ||
|
||
- name: Install Valgrind | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y valgrind | ||
- name: Run Valgrind | ||
run: | | ||
cargo b -r -p revm-test --bin snailtracer | ||
valgrind --tool=cachegrind target/release/snailtracer 2>&1 | tee cachegrind_results.txt | ||
- name: Valgrind results | ||
id: valgrind_results | ||
run: | | ||
contents=$(printf "%s" "$(head -c 64000 cachegrind_results.txt)") | ||
# dump line by line into a file | ||
printf "Valgrind Results:\n\n\`\`\`\n%s\n\`\`\`" "$contents" > results.md | ||
- name: Comment on PR | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
# Try to edit the last comment | ||
if gh pr comment ${{ github.event.pull_request.number }} --edit-last --body-file results.md; then | ||
echo "Successfully edited last comment." | ||
else | ||
echo "Failed to edit last comment. Trying to add a new comment instead!" | ||
# If editing last comment fails, try to add a new comment | ||
if ! gh pr comment ${{ github.event.pull_request.number }} --body-file results.md; then | ||
echo "Comment failed to be made, printing out results here:" | ||
cat results.md | ||
fi | ||
fi |
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,41 @@ | ||
# Documentation: https://release-plz.ieni.dev/docs | ||
name: Release-plz | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release-plz: | ||
name: Release-plz | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
# Commits the cargo lock (generally a good practice for upstream libraries) | ||
- name: Commit Cargo.lock | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
git add Cargo.lock | ||
git commit -m "Update Cargo.lock" || echo "No changes to commit" | ||
# This will run the release-plz action | ||
# The action dectect API breaking changes detection with cargo-semver-checks. | ||
# Semver is auto incremneted based on this | ||
# A PR with the semver bump is created with a new release tag and changelog | ||
# if you configure the cargo registry token, the action will also publish the new version to crates.io | ||
- name: Run release-plz | ||
uses: MarcoIeni/release-plz-action@v0.5 | ||
env: | ||
# The admin of the repository with need to configure the following secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
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.