This repository was archived by the owner on Feb 17, 2025. It is now read-only.
Removed Looped calls, made the transaction deterministic and fixed mi… #250
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: | |
| - main | |
| pull_request: | |
| name: build | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: | |
| - stable | |
| - nightly | |
| features: | |
| - default | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v3 | |
| - name: Generate cache key | |
| run: echo "${{ matrix.rust }} ${{ matrix.features }}" | tee .cache_key | |
| - name: cache | |
| uses: actions/cache@v2 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | |
| - name: Set default toolchain | |
| run: rustup default ${{ matrix.rust }} | |
| - name: Set profile | |
| run: rustup set profile minimal | |
| - name: Update toolchain | |
| run: rustup update | |
| - name: Build | |
| run: cargo build --features ${{ matrix.features }} |