replace Rust project demo #560
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: rust-build | |
on: | |
pull_request: | |
branches: [ "**" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions-rs/toolchain@v1 | |
with: | |
components: rustfmt, clippy | |
- name: Code Style Check | |
run: cargo fmt --check | |
- name: Build | |
run: cargo build && cargo clean | |
- name: Build Playground | |
working-directory: ./crates/playground | |
run: cargo build --examples |