Merge pull request #190 from nrf-rs/release #451
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: | |
| merge_group: | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| if: always() | |
| steps: | |
| - name: Done | |
| run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: | |
| - stable | |
| - beta | |
| - nightly | |
| include: | |
| # Minimum supported rust version (MSRV) | |
| # Note this needs to be new enough to build the examples as well as | |
| # the library itself. | |
| - name: MSRV | |
| rust: 1.81.0 | |
| name: "build (${{ matrix.name || matrix.rust }})" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: ${{ matrix.rust }} | |
| override: true | |
| components: rustfmt, clippy | |
| - name: rustfmt | |
| run: cargo fmt -- --check | |
| - name: build | |
| run: cargo xtask ci |