refactor(revme): use unwrap_or_default for non-UTF8 path safety #8266
Workflow file for this run
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
| name: Tests | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{github.workflow}}-${{github.ref}} | |
| on: | |
| push: | |
| branches: [main, "release/**"] | |
| pull_request: | |
| branches: [main, "release/**"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: test ${{ matrix.rust }} ${{ matrix.flags }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| rust: ["1.88", "stable", "nightly"] | |
| flags: ["--no-default-features", "", "--all-features"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install GMP (all-features) | |
| if: contains(matrix.flags, '--all-features') | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgmp-dev | |
| - run: cargo test --workspace ${{ matrix.flags }} | |
| check-no-std: | |
| name: check no_std ${{ matrix.target }} ${{ matrix.features }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: ["riscv32imac-unknown-none-elf", "riscv64imac-unknown-none-elf"] | |
| features: [""] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - run: | | |
| cargo check --target ${{ matrix.target }} --no-default-features --features=${{ matrix.features }} | |
| cargo check --target ${{ matrix.target }} -p op-revm --no-default-features --features=${{ matrix.features }} | |
| cargo check --target ${{ matrix.target }} -p revm-database --no-default-features | |
| check: | |
| name: check ${{ matrix.features }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| features: ["", "serde", "std", "std,map-foldhash"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: cargo check --no-default-features -p revm --features=${{ matrix.features }} | |
| feature-checks: | |
| name: features | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: taiki-e/install-action@cargo-hack | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - name: Install GMP | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgmp-dev | |
| - name: cargo hack | |
| run: cargo hack check --feature-powerset --depth 1 | |
| clippy: | |
| name: clippy | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Install GMP | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgmp-dev | |
| - run: cargo clippy --workspace --all-targets --all-features | |
| env: | |
| RUSTFLAGS: -Dwarnings | |
| docs: | |
| name: docs | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rust-docs | |
| - name: Install GMP | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgmp-dev | |
| - run: cargo doc --workspace --all-features --no-deps --document-private-items | |
| env: | |
| RUSTDOCFLAGS: "--cfg docsrs -D warnings" | |
| fmt: | |
| name: fmt | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all --check | |
| feature-propagation: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: run zepter | |
| run: | | |
| cargo install zepter -f --locked | |
| zepter --version | |
| time zepter run check | |
| typos: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: crate-ci/typos@v1 |