Skip to content

Update GitHub actions workflows #1

Update GitHub actions workflows

Update GitHub actions workflows #1

Workflow file for this run

name: Rust
on:
push:
branches: "**"
pull_request:
branches: "**"
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
build_stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest stable Rust
run: rustup install stable
- name: Check crate builds on stable
run: cargo build --features serde,numtraits,rand && cargo build
test_nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly Rust
run: rustup install nightly
- name: Set nightly as default
run: rustup default nightly
- name: Build
run: cargo build --all-features --verbose
- name: Run tests
run: sh scripts/run_all_tests.sh
- name: Run doc tests
run: cargo test --all-features --doc && cargo test --doc