fix(vault): force cipher-key presence in blob cipher #7869
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: Build Rust crates | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - "main" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Building ${{matrix.package}} for - ${{ matrix.os }} | |
| runs-on: ${{ matrix.os || 'ubuntu-24.04' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - macos-14 | |
| - ubuntu-24.04 | |
| - windows-2022 | |
| package: | |
| - bitwarden-api-api | |
| - bitwarden-api-identity | |
| - bitwarden-core | |
| - bitwarden-crypto | |
| - bitwarden-generators | |
| - bitwarden-sm | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install rust | |
| uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable | |
| with: | |
| toolchain: stable | |
| - name: Cache cargo registry | |
| uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 | |
| - name: Build | |
| run: cargo build -p ${{ matrix.package }} --release | |
| env: | |
| RUSTFLAGS: "-D warnings" | |
| release-dry-run: | |
| name: Release dry-run | |
| runs-on: ubuntu-24.04 | |
| if: ${{ github.ref == 'refs/head/main' }} | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install rust | |
| uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable | |
| with: | |
| toolchain: stable | |
| - name: Cache cargo registry | |
| uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 | |
| - name: Install cargo-run-bin | |
| run: cargo install cargo-run-bin --locked --version 1.7.4 | |
| - name: Check cargo-binstall is not configured | |
| run: ./scripts/check-no-binstall.sh | |
| - name: Cargo release dry run | |
| run: cargo bin cargo-release release publish --no-publish -p bitwarden-api-api -p bitwarden-api-identity -p bitwarden |