Skip to content

Update workflow.

Update workflow. #3

Workflow file for this run

name: build
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
env:
CARGO_TERM_COLOR: always
jobs:
msrv:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: msrv
run: |
msrv=$(cargo metadata --no-deps --format-version 1 |
jq --raw-output '.packages[] | select(.name=="ndarray-npz") | .rust_version')
echo "MSRV=$msrv" >> $GITHUB_ENV
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
components: rustfmt, rust-docs, clippy
- name: test
run: cargo test
- name: test-no_default_features
run: cargo test --no-default-features
- name: clippy
run: cargo clippy --tests -- --deny clippy::pedantic
- name: doc
run: cargo doc
- name: doc-no_default_features
run: cargo doc --no-default-features
- name: fmt
run: cargo fmt --check
nightly:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt, rust-docs, clippy, miri
- name: test
run: cargo test
- name: test-no_default_features
run: cargo test --no-default-features
- name: clippy
run: cargo clippy --tests -- --deny clippy::pedantic
- name: doc
run: cargo doc
env:
RUSTDOCFLAGS: "--cfg docsrs"
- name: doc-no_default_features
run: cargo doc --no-default-features
env:
RUSTDOCFLAGS: "--cfg docsrs"
- name: fmt
run: cargo fmt --check
- name: miri
run: cargo miri test
env:
MIRIFLAGS: -Zmiri-disable-isolation