Skip to content

CI-version

CI-version #11

Workflow file for this run

name: CI-version
on:
push:
tags:
- "v*"
env:
CARGO_TERM_COLOR: always
jobs:
tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
toolchain:
- stable
- nightly
features:
-
- --no-default-features --features chinese-to-number
- --no-default-features --features number-to-chinese
- --no-default-features --features chinese-to-number --features number-to-chinese
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --release ${{ matrix.features }}
- run: cargo doc --release ${{ matrix.features }}
MSRV:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
toolchain:
- 1.58
features:
-
- --no-default-features --features chinese-to-number
- --no-default-features --features number-to-chinese
- --no-default-features --features chinese-to-number --features number-to-chinese
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --release --lib --bins ${{ matrix.features }}