Bump version for deployment 72 #53
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: Continuous integration | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install protoc | |
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
- uses: actions/checkout@v4 | |
- run: rustup toolchain install $(cat rust-toolchain) --profile minimal --component rustfmt,clippy | |
- run: shellcheck **/*.sh | |
- name: Environment | |
run: rustup --version && cargo --version | |
- name: Build | |
run: cargo build | |
- name: Format | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: cargo clippy --all-targets -- -D warnings | |
- name: Clippy (generic UDP) | |
run: cargo clippy --no-default-features -- -D warnings | |
- name: Clippy (fuzz targets) | |
# Use the latest compiler for this; without a lockfile, | |
# the Minimum Supported Rust Version of dependencies might be higher. | |
run: cargo +stable clippy --all-targets -- -D warnings | |
working-directory: backend/fuzz | |
env: | |
RUSTFLAGS: --cfg fuzzing | |
- name: Test | |
run: cargo test |