Skip to content

ci: add warnings check and fix warnings #1

ci: add warnings check and fix warnings

ci: add warnings check and fix warnings #1

Workflow file for this run

name: "Builds without any warnings"
on:
push:
branches:
- main # run for pushes to the main branch. other branches need to create a PR if they want testing.
pull_request:
workflow_dispatch:
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_VERSION: 4
jobs:
build-and-test:
name: "Build and Test"
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
rust_release:
- stable
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.rust_release }} && rustup default ${{ matrix.rust_release }}
- run: RUSTFLAGS="-D warnings" cargo build -vv --workspace
- run: RUSTFLAGS="-D warnings" cargo test --workspace