Skip to content

ci: add build check to fail on warnings #3

ci: add build check to fail on warnings

ci: add build check to fail on warnings #3

Workflow file for this run

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