mirror of
https://gitee.com/openharmony/third_party_rust_memoffset
synced 2024-11-23 07:10:22 +00:00
only doctest on modern Rust
This commit is contained in:
parent
db56a2d8ce
commit
d41cc25cd7
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -4,6 +4,24 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test Suite
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
- stable
|
||||
- beta
|
||||
- nightly
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
- name: Run cargo test
|
||||
run: cargo test
|
||||
|
||||
test-msrv:
|
||||
name: Test Suite
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
@ -25,7 +43,9 @@ jobs:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
- name: Run cargo test
|
||||
run: cargo test
|
||||
# Exclude doctests here, as we don't want to clutter docs themselves
|
||||
# with backwards compatibility workarounds.
|
||||
run: cargo test --lib
|
||||
|
||||
nightly:
|
||||
name: Test Suite (nightly features)
|
||||
|
Loading…
Reference in New Issue
Block a user