Skip to content

Update rust_fmt_auto_build_test.yml #11

Update rust_fmt_auto_build_test.yml

Update rust_fmt_auto_build_test.yml #11

name: rust_fmt_auto_build_test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
rust_fmt_auto_build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache rust dependencies
uses: Swatinem/[email protected]
- name: Configure sccache
run: echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV; echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
- name: Run sccache-cache for artifacts
uses: mozilla-actions/[email protected]
- name: Fmt
run: cargo fmt -- --check
- name: cargo-install cargo-auto
with:
crate: cargo-auto
- name: Build
run: cargo auto build
- name: Test
run: cargo auto test