Skip to content

refactor: Reduce unnecessary calculations #28

refactor: Reduce unnecessary calculations

refactor: Reduce unnecessary calculations #28

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
doc:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Run doc
run: cargo doc --no-deps
- name: Deploy
uses: actions/upload-pages-artifact@v3
with:
path: target/doc
deploy:
needs: doc
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4