Update Rust crate derive_more to v2 #6768
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: check-opte-ver | |
| on: | |
| # Run on every PR targeting main, regardless of which paths changed, as the | |
| # override file may have been set in an earlier commit on the branch. So, | |
| # we must check on every PR rather than only when tracked paths change. | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check-opte-ver: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} # see omicron#4461 | |
| - name: Install jq | |
| run: sudo apt-get install -y jq | |
| - name: Install toml-cli | |
| run: cargo install toml-cli@0.2.3 | |
| - name: Check OPTE version and rev match | |
| run: ./tools/ci_check_opte_ver.sh | |
| check-opte-override: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} # see omicron#4461 | |
| - name: Reject OPTE override on main | |
| run: | | |
| source tools/opte_version_override | |
| if [[ "x$OPTE_COMMIT" != "x" ]]; then | |
| echo "::error::OPTE_COMMIT is set in tools/opte_version_override." | |
| echo "::error::The OPTE override must be cleared before merging to main." | |
| exit 1 | |
| fi |