ci: add build check to fail on warnings #3
Workflow file for this run
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: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- releases/** | |
# TODO: remove this line before merging | |
- ci/add-build-check | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build Check | |
runs-on: blacksmith-4vcpu-ubuntu-2204 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.81.0 | |
- name: Rust Cache | |
uses: useblacksmith/rust-cache@v3 | |
with: | |
shared-key: "cache" | |
- name: Run build | |
run: RUSTFLAGS="-D warnings" cargo build --locked --release | |
env: | |
RUST_BACKTRACE: 1 |