mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-07-24 15:55:55 +00:00
Add Windows CI in GitHub Actions
This commit is contained in:
@@ -14,6 +14,14 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@nightly
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
- run: cd test_suite && cargo test --features unstable
|
- run: cd test_suite && cargo test --features unstable
|
||||||
|
|
||||||
|
windows:
|
||||||
|
name: Test suite (windows)
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
- run: cd test_suite && cargo test --features unstable -- --skip ui --exact
|
||||||
|
|
||||||
stable:
|
stable:
|
||||||
name: Rust stable
|
name: Rust stable
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -35,8 +43,12 @@ jobs:
|
|||||||
- run: cd test_suite && cargo test
|
- run: cd test_suite && cargo test
|
||||||
|
|
||||||
nightly:
|
nightly:
|
||||||
name: Rust nightly
|
name: Rust nightly ${{matrix.os == 'windows' && '(windows)' || ''}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{matrix.os}}-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu, windows]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: dtolnay/rust-toolchain@nightly
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
@@ -46,6 +58,7 @@ jobs:
|
|||||||
- run: cd serde && cargo build --no-default-features --features rc,alloc
|
- run: cd serde && cargo build --no-default-features --features rc,alloc
|
||||||
- run: cd serde && cargo test --features derive,rc,unstable
|
- run: cd serde && cargo test --features derive,rc,unstable
|
||||||
- run: cd test_suite/no_std && cargo build
|
- run: cd test_suite/no_std && cargo build
|
||||||
|
if: matrix.os != 'windows'
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
name: Rust 1.13.0
|
name: Rust 1.13.0
|
||||||
|
|||||||
Reference in New Issue
Block a user