Skip to content

[deps]: Update dtolnay/rust-toolchain digest to a54c7af #5889

[deps]: Update dtolnay/rust-toolchain digest to a54c7af

[deps]: Update dtolnay/rust-toolchain digest to a54c7af #5889

name: Build Rust crates
on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Building ${{matrix.package}} for - ${{ matrix.os }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
package:
- bitwarden
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install rust
uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203 # stable
with:
toolchain: stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- name: Build
run: cargo build -p ${{ matrix.package }} --release
env:
RUSTFLAGS: "-D warnings"
release-dry-run:
name: Release dry-run
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/head/main' }}
needs: build
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install rust
uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203 # stable
with:
toolchain: stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- name: Install cargo-release
run: cargo install cargo-release
- name: Cargo release dry run
run: cargo-release release publish --no-publish -p bitwarden