|  | 
| 53 | 53 |       run: cargo run --bin omicron-package -- -t default check | 
| 54 | 54 | 
 | 
| 55 | 55 |   # Note that `cargo clippy` includes `cargo check, so this ends up checking all | 
| 56 |  | -  # of our code. | 
|  | 56 | +  # of our (default) code. | 
| 57 | 57 |   clippy-lint: | 
| 58 | 58 |     runs-on: ubuntu-22.04 | 
| 59 | 59 |     env: | 
|  | 
| 82 | 82 |     - name: Run Clippy Lints | 
| 83 | 83 |       run: cargo xtask clippy | 
| 84 | 84 | 
 | 
|  | 85 | +  check-features: | 
|  | 86 | +    runs-on: ubuntu-22.04 | 
|  | 87 | +    env: | 
|  | 88 | +      CARGO_INCREMENTAL: 0 | 
|  | 89 | +    steps: | 
|  | 90 | +    # This repo is unstable and unnecessary: https://github.com/microsoft/linux-package-repositories/issues/34 | 
|  | 91 | +    - name: Disable packages.microsoft.com repo | 
|  | 92 | +      run: sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list | 
|  | 93 | +    - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | 
|  | 94 | +      with: | 
|  | 95 | +        ref: ${{ github.event.pull_request.head.sha }} # see omicron#4461 | 
|  | 96 | +    - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 | 
|  | 97 | +      if: ${{ github.ref != 'refs/heads/main' }} | 
|  | 98 | +    - name: Report cargo version | 
|  | 99 | +      run: cargo --version | 
|  | 100 | +    - name: Update PATH | 
|  | 101 | +      run: source "./env.sh"; echo "PATH=$PATH" >> "$GITHUB_ENV" | 
|  | 102 | +    - name: Print PATH | 
|  | 103 | +      run: echo $PATH | 
|  | 104 | +    - name: Print GITHUB_ENV | 
|  | 105 | +      run: cat "$GITHUB_ENV" | 
|  | 106 | +    - name: Install Pre-Requisites | 
|  | 107 | +      run: ./tools/install_builder_prerequisites.sh -y | 
|  | 108 | +    - name: Run Cargo Check (No Default Features) | 
|  | 109 | +      run: cargo check --workspace --bins --tests --no-default-features | 
|  | 110 | +    - name: Install cargo-hack | 
|  | 111 | +      uses: taiki-e/install-action@cargo-hack | 
|  | 112 | +    - name: Run Cargo Hack Check (Feature-Powerset, No-Dev-Deps) | 
|  | 113 | +      run: cargo hack check --workspace --feature-powerset --no-dev-deps --exclude-features image-trampoline,image-standard | 
|  | 114 | + | 
| 85 | 115 |   # This is just a test build of docs.  Publicly available docs are built via | 
| 86 | 116 |   # the separate "rustdocs" repo. | 
| 87 | 117 |   build-docs: | 
|  | 
0 commit comments