aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2023-03-10 20:32:17 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-03-10 20:32:17 +0000
commitc7a291994efff0716ff725cb4ab0bf56f38ea0e0 (patch)
tree233a7ce1b06fc9c6a665f69f59d627b1111a8cf9 /.github/workflows/ci.yaml
parent84147751e0fdbd38c3def24d5ad557400ef35b7e (diff)
parent19ca233fef56526b0864105a9061466883eca900 (diff)
downloadcriterion-c7a291994efff0716ff725cb4ab0bf56f38ea0e0.tar.gz
Upgrade criterion to 0.4.0 am: 3c611a33f1 am: 8f1301829e am: 40e0d40821 am: 19ca233fef
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/criterion/+/2438096 Change-Id: Ic4a7be53328a27ef5efbe5b108ad3d53bb566024 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to '.github/workflows/ci.yaml')
-rwxr-xr-x.github/workflows/ci.yaml38
1 files changed, 35 insertions, 3 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 2c39904..d7f39e4 100755
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -5,6 +5,7 @@ on:
pull_request:
branches:
- master
+ - version-0.4
name: tests
@@ -16,13 +17,13 @@ jobs:
rust:
- stable
- beta
- - nightly
- - 1.46.0 # MSRV
+ - 1.57 # MSRV
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
+ name: Setup rust toolchain
with:
profile: minimal
toolchain: ${{ matrix.rust }}
@@ -30,25 +31,56 @@ jobs:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
+ name: Load dependencies from cache
- uses: actions-rs/cargo@v1
+ name: Build with stable features
with:
command: build
args: --features stable
- uses: actions-rs/cargo@v1
+ if: ${{ matrix.rust == 'nightly' }}
+ name: Build with unstable features
+ with:
+ command: build
+ args: --all-features
+
+ - uses: actions-rs/cargo@v1
+ name: Build with minimal features
+ with:
+ command: build
+ args: --no-default-features
+
+ - uses: actions-rs/cargo@v1
+ name: Test with stable features
with:
command: test
args: --features stable
- uses: actions-rs/cargo@v1
+ name: Test with minimal features
+ with:
+ command: test
+ args: --no-default-features
+
+ - uses: actions-rs/cargo@v1
+ name: Check for non-standard formatting
if: ${{ matrix.rust == 'stable' }}
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
- if: ${{ matrix.rust != '1.40.0' }} # 1.40 has horrible lints.
+ name: Check for clippy hints
with:
command: clippy
args: -- -D warnings
+
+ - name: Test run targeting WASI
+ run: |
+ curl https://wasmtime.dev/install.sh -sSf | bash
+ source ~/.bashrc
+ export PATH=$HOME/.wasmtime/bin/:$PATH
+ cargo install cargo-wasi
+ cargo wasi bench --no-default-features -- --test