Merge pull request #471 from jelmer/rand #1164
This file contains 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: Rust | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt -y update | |
sudo apt -y install devscripts libapt-pkg-dev libtdb-dev libssl-dev pkg-config libgpgme-dev | |
cargo install cargo-all-features | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip setuptools_rust setuptools | |
- name: Install breezy | |
run: python -m pip install --upgrade breezy | |
# TODO(jelmer): Add proper test isolation so this isn't necessary | |
- name: Setup bzr identity | |
run: brz whoami "CI <[email protected]>" | |
- name: Build | |
run: cargo build --verbose | |
env: | |
RUSTFLAGS: -Dwarnings | |
- name: Run tests | |
run: cargo test-all-features --verbose | |
env: | |
RUSTFLAGS: -Dwarnings | |
- name: Check formatting | |
run: cargo fmt -- --check |