Update actions/checkout digest to 34e1148 #468
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: | |
| - main | |
| pull_request: | |
| name: CI | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8 | |
| - uses: taiki-e/install-action@just | |
| - uses: taiki-e/install-action@cargo-hack | |
| - name: Lint (clippy) | |
| run: just powerset clippy --all-targets | |
| - name: Lint (rustfmt) | |
| run: cargo xfmt --check | |
| - name: Run rustdoc | |
| run: just rustdoc | |
| - name: Check for differences | |
| run: git diff --exit-code | |
| build-and-test: | |
| name: Build and test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| # 1.79 is the MSRV | |
| rust-version: ["1.79", stable] | |
| fail-fast: false | |
| env: | |
| RUSTFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust-version }} | |
| - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2 | |
| - uses: taiki-e/install-action@just | |
| - uses: taiki-e/install-action@cargo-hack | |
| - uses: taiki-e/install-action@nextest | |
| - name: Build | |
| run: just powerset build --all-targets | |
| - name: Test | |
| run: just powerset nextest run --all-targets --no-tests=pass -E 'not (test(ui) or test(snapshot))' | |
| - name: Run extended tests (only on stable) | |
| if: matrix.rust-version == 'stable' | |
| run: cargo nextest run --all-targets --all-features | |
| - name: Run doctests | |
| if: matrix.rust-version == 'stable' | |
| run: cargo test --all-features --doc | |
| no-std: | |
| name: Build no_std for ${{ matrix.target }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| target: | |
| - thumbv7m-none-eabi | |
| rust-version: [stable] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust-version }} | |
| targets: ${{ matrix.target }} | |
| - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2 | |
| - uses: taiki-e/install-action@just | |
| - uses: taiki-e/install-action@cargo-hack | |
| - run: just powerset-no-std build --target ${{ matrix.target }} |