Update README.md #74
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: Cargo Build & Test | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Rust project - latest | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- run: cd .. && git clone https://github.com/AlexanderDefuria/operations && cd ./circuit-solver-algorithms | |
- run: cargo build --verbose | |
- run: cargo test --verbose | |
wasm: | |
name: Rust project - wasm | |
runs-on: ubuntu-latest | |
needs: | |
- build_and_test | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install Target | |
run: rustup target add wasm32-unknown-unknown | |
- uses: jetli/wasm-pack-action@v0.4.0 | |
with: | |
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') | |
version: 'v0.9.1' | |
- run: cd .. && git clone https://github.com/AlexanderDefuria/operations && cd ./circuit-solver-algorithms | |
- name: Test wasm | |
run: wasm-pack test --node | |
print_doc_coverage: | |
name: Print documentation coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
- run: cd .. && git clone https://github.com/AlexanderDefuria/operations && cd ./circuit-solver-algorithms | |
- id: coverage | |
uses: bewee/rustdoc-coverage-action@v1 | |
- run: echo ${{ steps.coverage.outputs.documented }} |