-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ci: added miri job #1103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
ci: added miri job #1103
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
210950e
Added miri CI job
xqft 77087e6
Changed ubuntu version to 20.04
xqft 386bc76
Changed way of installing miri
xqft 30c7e97
Added install geth step
xqft 02da34a
Cache con failure
xqft a17c1dd
Run miri with custom action
xqft 28c9b58
Removed install nextest step
xqft d14a80c
Ignore proptests as they hang miri
xqft dabe11c
Changed cargo flag
xqft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -222,3 +222,46 @@ jobs: | |
shell: 'script -q -e -c "bash {0}"' # required to workaround /dev/tty not being available | ||
run: | | ||
./.github/scripts/compare_iai.sh | ||
|
||
miri: | ||
name: miri | ||
# Pin to `20.04` instead of `ubuntu-latest`, until ubuntu-latest migration is complete | ||
# See also <https://github.com/foundry-rs/foundry/issues/3827> | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: miri | ||
|
||
- name: Setup Miri | ||
run: cargo miri setup | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
|
||
- name: Install geth | ||
run: | | ||
mkdir -p "$HOME/bin" | ||
wget -q https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-$GETH_BUILD.tar.gz | ||
tar -xvf geth-linux-amd64-$GETH_BUILD.tar.gz | ||
mv geth-linux-amd64-$GETH_BUILD/geth $HOME/bin/geth | ||
chmod u+x "$HOME/bin/geth" | ||
export PATH=$HOME/bin:$PATH | ||
echo $HOME/bin >> $GITHUB_PATH | ||
geth version | ||
|
||
- name: Install libclang # Necessary for compiling reth-mdbx-sys | ||
run: | | ||
sudo apt update | ||
sudo apt-get install -y libclang-dev | ||
|
||
- name: Run tests with miri | ||
uses: xqft/[email protected] | ||
with: | ||
cargoflags: --workspace --all-features | ||
miriflags: -Zmiri-disable-isolation |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.