mirror of
https://github.com/openharmony/third_party_rust_pin-project-lite.git
synced 2026-07-01 20:44:14 -04:00
Update CI config
This commit is contained in:
+10
-11
@@ -20,6 +20,7 @@ env:
|
||||
CARGO_NET_RETRY: 10
|
||||
CARGO_TERM_COLOR: always
|
||||
RUST_BACKTRACE: full
|
||||
RUSTDOCFLAGS: -D warnings
|
||||
RUSTFLAGS: -D warnings
|
||||
RUSTUP_MAX_RETRIES: 10
|
||||
|
||||
@@ -39,23 +40,23 @@ jobs:
|
||||
- nightly
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: taiki-e/github-actions/install-rust@main
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
component: rustfmt
|
||||
component: rustfmt,rust-src
|
||||
target: thumbv7m-none-eabi
|
||||
- uses: dtolnay/install@cargo-expand
|
||||
if: startsWith(matrix.rust, 'nightly')
|
||||
- run: cargo test --all --all-features
|
||||
- run: cargo build --manifest-path tests/no-std/Cargo.toml --target thumbv7m-none-eabi
|
||||
|
||||
build:
|
||||
msrv:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: taiki-e/install-action@cargo-hack
|
||||
@@ -64,7 +65,7 @@ jobs:
|
||||
miri:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: taiki-e/github-actions/install-rust@main
|
||||
@@ -72,13 +73,13 @@ jobs:
|
||||
component: miri
|
||||
- run: cargo miri test --workspace --all-features
|
||||
env:
|
||||
MIRIFLAGS: -Zmiri-check-number-validity -Zmiri-symbolic-alignment-check -Zmiri-tag-raw-pointers
|
||||
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check
|
||||
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout
|
||||
|
||||
tidy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: taiki-e/github-actions/install-rust@main
|
||||
@@ -99,13 +100,11 @@ jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: taiki-e/github-actions/install-rust@main
|
||||
- run: cargo doc --workspace --all-features
|
||||
env:
|
||||
RUSTDOCFLAGS: -D warnings
|
||||
|
||||
# This job doesn't actually test anything, but they're used to tell bors the
|
||||
# build completed, as there is no practical way to detect when a workflow is
|
||||
@@ -118,7 +117,7 @@ jobs:
|
||||
if: github.event_name == 'push' && success()
|
||||
needs:
|
||||
- test
|
||||
- build
|
||||
- msrv
|
||||
- miri
|
||||
- tidy
|
||||
- docs
|
||||
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
if: github.repository_owner == 'taiki-e'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: taiki-e/github-actions/install-rust@main
|
||||
|
||||
Reference in New Issue
Block a user