mirror of
https://github.com/uuid-rs/uuid.git
synced 2025-09-30 14:31:03 +00:00
commit
f5a29cf3d1
78
.github/workflows/ci.yml
vendored
78
.github/workflows/ci.yml
vendored
@ -39,6 +39,7 @@ jobs:
|
|||||||
os:
|
os:
|
||||||
- macos-10.15
|
- macos-10.15
|
||||||
- ubuntu-20.04
|
- ubuntu-20.04
|
||||||
|
- windows-2019
|
||||||
rust_target:
|
rust_target:
|
||||||
- x86_64-gnu
|
- x86_64-gnu
|
||||||
- x86_64-msvc
|
- x86_64-msvc
|
||||||
@ -71,13 +72,8 @@ jobs:
|
|||||||
run: cargo hack test --lib --all-features
|
run: cargo hack test --lib --all-features
|
||||||
|
|
||||||
stable:
|
stable:
|
||||||
name: "Tests / Stable / OS: ${{ matrix.os }}"
|
name: "Tests / Stable"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-20.04
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -93,13 +89,8 @@ jobs:
|
|||||||
run: cargo test --all-features
|
run: cargo test --all-features
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
name: "Tests / MSRV / OS: ${{ matrix.os }}"
|
name: "Tests / MSRV"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-20.04
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -200,62 +191,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Powerset
|
- name: Powerset
|
||||||
run: cargo hack check --each-feature -Z avoid-dev-deps
|
run: cargo hack check --each-feature -Z avoid-dev-deps
|
||||||
win_tests:
|
|
||||||
name: "Tests / OS: Windows 2019 - ${{ matrix.channel }}-${{ matrix.rust_target }}"
|
|
||||||
runs-on: windows-2019
|
|
||||||
env:
|
|
||||||
RUSTFLAGS: "--cfg uuid_unstable"
|
|
||||||
RUSTDOCFLAGS: "--cfg uuid_unstable"
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
channel:
|
|
||||||
- stable
|
|
||||||
- beta
|
|
||||||
- nightly
|
|
||||||
os:
|
|
||||||
- windows-2019
|
|
||||||
rust_target:
|
|
||||||
- x86_64-gnu
|
|
||||||
- x86_64-msvc
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Rust Toolchain
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
override: true
|
|
||||||
profile: minimal
|
|
||||||
toolchain: ${{ matrix.channel }}-${{ matrix.rust_target }}
|
|
||||||
|
|
||||||
- name: Install cargo-hack
|
|
||||||
run: cargo install cargo-hack
|
|
||||||
|
|
||||||
- name: Docs
|
|
||||||
run: cargo test --all-features --doc
|
|
||||||
|
|
||||||
- name: Examples
|
|
||||||
run: cargo test --all-features --examples
|
|
||||||
|
|
||||||
- name: Each version feature
|
|
||||||
run: cargo hack test --lib --each-feature --optional-deps $env:DEP_FEATURES
|
|
||||||
|
|
||||||
- name: All version features
|
|
||||||
run: cargo hack test --lib --each-feature --features "$env:VERSION_FEATURES" --optional-deps "$env:DEP_FEATURES"
|
|
||||||
|
|
||||||
win-msrv:
|
|
||||||
name: "Tests / MSRV / OS: Windows 2019"
|
|
||||||
runs-on: windows-2019
|
|
||||||
steps:
|
|
||||||
- name: Checkout sources
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: 1.57.0
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Version features
|
|
||||||
run: cargo test --features "$env:VERSION_FEATURES $env:DEP_FEATURES"
|
|
||||||
|
@ -84,7 +84,7 @@ version = "2"
|
|||||||
# Public: Used in trait impls on `Uuid`
|
# Public: Used in trait impls on `Uuid`
|
||||||
[dependencies.arbitrary]
|
[dependencies.arbitrary]
|
||||||
optional = true
|
optional = true
|
||||||
version = "=1.1.3"
|
version = "1.1.3"
|
||||||
|
|
||||||
# Public (unstable): Used in `zerocopy` derive
|
# Public (unstable): Used in `zerocopy` derive
|
||||||
# Unstable: also need RUSTFLAGS="--cfg uuid_unstable" to work
|
# Unstable: also need RUSTFLAGS="--cfg uuid_unstable" to work
|
||||||
|
Loading…
x
Reference in New Issue
Block a user