Skip to content

Try to skip uncompilable tests for beta #124

Try to skip uncompilable tests for beta

Try to skip uncompilable tests for beta #124

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
with_features:
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu, macos, windows]
toolchain:
- 1.77
- stable
- beta
- nightly
include:
- feature: async
- feature: sync
- feature: serde
- feature: async,sync
- feature: async,serde
- feature: sync,serde
- feature: async,sync,serde
exclude:
- os: windows
toolchain: nightly
env:
__FIELDX_DEFAULT_TOOLCHAIN__: ${{ matrix.toolchain }}
__FIELDX_NO_UNCOMPILABLE__: ${{ matrix.toolchain == 'beta' && '1' || '' }}
steps:
- uses: actions/checkout@v4
- name: Show environment variables
run: env
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --all --features ${{ matrix.feature }}
- run: cargo test --verbose --all --features ${{ matrix.feature }}
- run: cargo test --verbose --all --features ${{ matrix.feature }},send_guard
if: matrix.feature == 'serde'
all_features:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
toolchain:
- 1.77
- stable
- nightly
env:
__FIELDX_DEFAULT_TOOLCHAIN__: ${{ matrix.toolchain }}
steps:
- uses: actions/checkout@v4
- name: Show environment variables
run: env
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --all --features sync,async,serde,send_guard
- run: cargo test --verbose --all --features sync,async,serde,send_guard
- run: cargo test --verbose --all --features sync,async,serde
no_features:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
toolchain:
- 1.77
- stable
- nightly
env:
__FIELDX_DEFAULT_TOOLCHAIN__: ${{ matrix.toolchain }}
steps:
- uses: actions/checkout@v4
- name: Show environment variables
run: env
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --all
- name: Test all
env:
__FIELDX_DEFAULT_TOOLCHAIN__: ${{ matrix.toolchain }}
run: cargo test --verbose --all
build_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup default nightly
- run: cargo install cargo-docs-rs
- run: cargo docs-rs -p fieldx