Skip to content

Support custom output (target) dirs; use naming consistent with cargo #28

Support custom output (target) dirs; use naming consistent with cargo

Support custom output (target) dirs; use naming consistent with cargo #28

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run sccache-cache only on non-release runs
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
uses: mozilla-actions/[email protected]
- name: Set Rust caching env vars only on non-release runs
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
run: |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- name: Build
run: cargo build --verbose
- name: Format
run: cargo fmt --check
- name: Clippy
run: cargo clippy -- -D warnings
- name: Check
run: rustup show
- name: Run tests
run: cargo test --verbose
- name: Docs
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps