ci: Run wallet_state benchmark in CI/codspeed #1207
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
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| name: Build without Cargo.lock | |
| jobs: | |
| runner-matrix: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest, macos-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Remove Cargo.lock | |
| run: rm Cargo.lock | |
| - name: Show available compilers (debug) | |
| if: matrix.os != 'windows-latest' | |
| run: | | |
| echo "c++ -> $(which c++ 2>/dev/null || true)" | |
| c++ --version || true | |
| echo "clang++ -> $(which clang++ 2>/dev/null || true)" | |
| clang++ --version || true | |
| shell: bash | |
| - name: Install clang (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang | |
| shell: bash | |
| - name: Build (linux & macos) | |
| if: matrix.os != 'windows-latest' | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| run: cargo build --all --release | |
| - name: Build (windows) | |
| if: matrix.os == 'windows-latest' | |
| run: cargo build --all --release |