aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-07-10 20:23:30 -0700
committerChih-Hung Hsieh <chh@google.com>2020-07-13 22:26:50 -0700
commitd58366dc4a1a1ec807bb02dfc7928051799130ac (patch)
tree99470e8e8e4787e90b156f71bafac98438d6c39a /.github
parent09ba014483c2506939704e0b993a728958553e25 (diff)
downloadpin-project-d58366dc4a1a1ec807bb02dfc7928051799130ac.tar.gz
Upgrade rust/crates/pin-project to 0.4.22android-r-beta-3android-r-beta-2
* Keep local change in src/lib.rs Test: make Change-Id: I63ca4a3f247df2028bcb6cb849823b296865f444
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml69
1 files changed, 43 insertions, 26 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 816bd88..c11a4ad 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -41,7 +41,7 @@ jobs:
rust: nightly
runs-on: ${{ matrix.os || 'ubuntu' }}-latest
steps:
- - uses: actions/checkout@master
+ - uses: actions/checkout@v2
- name: Install Rust
run: |
. ./ci/install-rust.sh ${{ matrix.rust }}
@@ -53,17 +53,19 @@ jobs:
if: matrix.rust == 'nightly'
run: |
rustup target add thumbv7m-none-eabi
+ - name: cargo test --tests
+ if: matrix.rust == '1.34.0' || matrix.rust == '1.36.0'
+ run: |
+ cargo test --all --all-features --exclude expandtest --tests
- name: cargo test
+ if: matrix.rust != '1.34.0' && matrix.rust != '1.36.0'
run: |
cargo test --all --all-features --exclude expandtest
- - name: cargo test (compiletest)
- if: matrix.rust == 'nightly'
- run: |
- cargo test -p pin-project --all-features --test compiletest -- --ignored
- name: cargo check (no-std)
if: matrix.rust == 'nightly'
run: |
cargo check --target thumbv7m-none-eabi --manifest-path tests/no-std/Cargo.toml
+ cargo check --target thumbv7m-none-eabi --manifest-path tests/rust-2015/Cargo.toml
- name: cargo check (minimal versions)
if: matrix.rust == 'nightly'
run: |
@@ -73,7 +75,7 @@ jobs:
name: expandtest
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@master
+ - uses: actions/checkout@v2
- name: Install Rust
run: |
. ./ci/install-rust.sh
@@ -84,36 +86,47 @@ jobs:
run: |
cargo test --all-features --manifest-path tests/expand/Cargo.toml
- style:
- name: style
- strategy:
- fail-fast: false
- matrix:
- component:
- - clippy
- - rustfmt
- - rustdoc
+ clippy:
+ name: clippy
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@master
+ - uses: actions/checkout@v2
- name: Install Rust
run: |
. ./ci/install-rust.sh
- - name: Install component
+ - name: Install clippy
run: |
- . ./ci/install-component.sh ${{ matrix.component }}
+ . ./ci/install-component.sh clippy
- name: cargo clippy
- if: matrix.component == 'clippy'
run: |
cargo clippy --all --all-features --all-targets
- - name: cargo fmt -- --check
- if: matrix.component == 'rustfmt'
+
+ rustfmt:
+ name: rustfmt
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install Rust
+ run: |
+ . ./ci/install-rust.sh
+ - name: Install rustfmt
+ run: |
+ . ./ci/install-component.sh rustfmt
+ - name: cargo fmt --check
run: |
cargo fmt --all -- --check
+
+ rustdoc:
+ name: rustdoc
+ env:
+ RUSTDOCFLAGS: -Dwarnings
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install Rust
+ run: |
+ . ./ci/install-rust.sh
- name: cargo doc
- if: matrix.component == 'rustdoc'
- env:
- RUSTDOCFLAGS: -Dwarnings
run: |
cargo doc --no-deps --all --all-features
@@ -127,8 +140,10 @@ jobs:
name: ci
if: github.event_name == 'push' && success()
needs:
- - style
- test
+ - clippy
+ - rustfmt
+ - rustdoc
- expandtest
runs-on: ubuntu-latest
steps:
@@ -138,8 +153,10 @@ jobs:
name: ci
if: github.event_name == 'push' && !success()
needs:
- - style
- test
+ - clippy
+ - rustfmt
+ - rustdoc
- expandtest
runs-on: ubuntu-latest
steps: