Skip to content

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Apr 26, 2022
1 parent d793ebf commit e10fe6f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -64,21 +65,21 @@ 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
with:
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
Expand All @@ -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
Expand All @@ -118,7 +117,7 @@ jobs:
if: github.event_name == 'push' && success()
needs:
- test
- build
- msrv
- miri
- tidy
- docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e10fe6f

Please sign in to comment.