Support nostd benchmarks #28
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
# Runs general build and test logic. | |
name: test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Lint | |
run: cargo clippy --all-targets --all-features -- -D clippy::all | |
continue-on-error: true | |
unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v1 | |
- name: Build | |
run: cargo build --verbose | |
- name: Lint | |
run: cargo clippy --all-targets --all-features -- -D clippy::all | |
- name: Test | |
run: cargo test --verbose | |
- name: Test nostd | |
run: cargo test --no-default-features | |
release: | |
runs-on: ubuntu-latest | |
needs: [unit_tests] | |
if: contains('refs/heads/main', github.ref) | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v1 | |
- name: Publish | |
uses: katyo/publish-crates@v1 | |
continue-on-error: true | |
with: | |
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} |