aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2022-12-12 13:42:35 +0100
committerJeff Vander Stoep <jeffv@google.com>2022-12-12 13:56:13 +0100
commit0e806b42a20bbade6a6b704391781ecaaaf3c1db (patch)
tree3e22c3561aab05ecfb4ca002c32c468efd1417d0 /.github
parentbaa2bcc59ad653e6bc45f4dfc3f9b77cbdabea2c (diff)
downloaditoa-0e806b42a20bbade6a6b704391781ecaaaf3c1db.tar.gz
Upgrade itoa to 1.0.4
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update rust/crates/itoa For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Test: TreeHugger Change-Id: Ic689f6fa21f68b1935fcad9a2cfc58dfae76bd59
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml69
1 files changed, 45 insertions, 24 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e0f8585..e399cef 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,6 +5,12 @@ on:
pull_request:
schedule: [cron: "40 1 * * *"]
+permissions:
+ contents: read
+
+env:
+ RUSTFLAGS: -Dwarnings
+
jobs:
test:
name: Rust ${{matrix.rust}}
@@ -12,42 +18,57 @@ jobs:
strategy:
fail-fast: false
matrix:
- rust: [nightly, beta, stable, 1.26.0]
+ rust: [nightly, beta, stable, 1.36.0]
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
- run: cargo build
- - run: cargo build --features i128
- - run: cargo test --features i128
- - run: cargo test --features i128 --release
- - run: cargo build --no-default-features --features i128
- - run: cargo test --tests --no-default-features --features i128
- - run: cargo test --tests --no-default-features --features i128 --release
- - run: cargo bench --no-run --features i128
+ - run: cargo test
+ - run: cargo test --release
+ - run: cargo build --no-default-features
+ - run: cargo test --tests --no-default-features
+ - run: cargo test --tests --no-default-features --release
+ - run: cargo build --tests --features no-panic --release
+ if: matrix.rust == 'nightly'
+ - run: cargo bench --no-run
if: matrix.rust == 'nightly'
- mintest:
- name: Rust 1.20.0
+ miri:
+ name: Miri
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: dtolnay/rust-toolchain@1.20.0
- - run: cargo test
-
- msrv:
- name: Rust 1.0.0
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: dtolnay/rust-toolchain@1.0.0
- - run: cargo build
+ - uses: actions/checkout@v3
+ - uses: dtolnay/rust-toolchain@miri
+ - run: cargo miri test
+ env:
+ MIRIFLAGS: -Zmiri-strict-provenance
clippy:
name: Clippy
runs-on: ubuntu-latest
+ if: github.event_name != 'pull_request'
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
- - run: cargo clippy -- -Dclippy::all -Dclippy::pedantic
+ - run: cargo clippy --tests --benches -- -Dclippy::all -Dclippy::pedantic
+
+ fuzz:
+ name: Fuzz
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: dtolnay/rust-toolchain@nightly
+ - uses: dtolnay/install@cargo-fuzz
+ - run: cargo fuzz build -O
+
+ outdated:
+ name: Outdated
+ runs-on: ubuntu-latest
+ if: github.event_name != 'pull_request'
+ steps:
+ - uses: actions/checkout@v3
+ - uses: dtolnay/install@cargo-outdated
+ - run: cargo outdated --workspace --exit-code 1
+ - run: cargo outdated --manifest-path fuzz/Cargo.toml --exit-code 1