Merge pull request #8 from nand-nor/add/benchmarks #21
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: Runner for CI | |
on: | |
workflow_call: | |
push: | |
pull_request: | |
branches: [main] | |
types: | |
- opened | |
- ready_for_review | |
jobs: | |
build: | |
name: CI Xtask | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
target: x86_64-unknown-linux-gnu | |
- uses: actions/checkout@v3 | |
- name: compile & run check | |
run: | | |
cargo xtask run | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
target: x86_64-unknown-linux-gnu | |
- uses: actions/checkout@v3 | |
- name: test check | |
run: | | |
cargo test | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
target: x86_64-unknown-linux-gnu | |
- uses: actions/checkout@v3 | |
- name: clippy check | |
run: | | |
cargo clippy --all-features -- -D warnings |