Skip to content

add update script for pub repo #3

add update script for pub repo

add update script for pub repo #3

Workflow file for this run

name: rust
on:
push:
branches:
- "main"
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- "main"
paths:
- "**.rs"
- "**.toml"
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run cargo fmt
run: cargo fmt --all -- --check
clippy:
name: Clippy
needs: [ fmt ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo -V && rustc -V
- name: Run clippy
run: cargo clippy --all --tests --all-features --all-targets -- -D warnings
rustdoc:
name: Rustdoc
needs: [ fmt ]
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: muddy
run: >
cargo rustdoc -p libbsb --all-features -- -D warnings
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: run tests
run: cargo test --release