Skip to content

Major refactors

Major refactors #125

Workflow file for this run

on: [push, pull_request]
name: "NBLAST rust crate"
defaults:
run:
shell: bash
working-directory: nblast-rs
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- run: cargo clippy --all-features
- run: cargo fmt -- --check
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- run: cargo test --all-features
deploy:
runs-on: ubuntu-18.04
needs: [lint, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/rs-v')
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- run: cargo login ${CRATES_IO_TOKEN}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo publish