Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update CI to assume github actions #350

Merged
merged 1 commit into from Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/rust.yml
Expand Up @@ -32,5 +32,16 @@ jobs:
- name: Build
run: cargo build

- name: Check 1.40
if: ${{ matrix.rust == '1.40.0' }}
run: |
cargo "$@" check
cargo "$@" check --no-default-features

- name: Run tests
if: ${{ matrix.rust != '1.40.0' }}
run: ./ci.sh

- name: Check docs
if: ${{ matrix.rust == 'stable' }}
run: cargo doc
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 11 additions & 20 deletions ci.sh
@@ -1,27 +1,18 @@
#!/bin/bash -x
set -ex

if [[ "$TRAVIS_RUST_VERSION" == "1.40.0" ]]; then
cargo "$@" check
cargo "$@" check --no-default-features
else
cargo "$@" build
cargo "$@" test --all-features
cargo "$@" test --all-features --examples
cargo "$@" build
cargo "$@" test --all-features
cargo "$@" test --all-features --examples

cargo "$@" test --bench json --bench http -- --test
cargo "$@" check --bench mp4 --features mp4

cargo "$@" build --no-default-features --features alloc
cargo "$@" test --no-default-features --features alloc --examples
cargo "$@" test --bench json --bench http -- --test
cargo "$@" check --bench mp4 --features mp4

cargo "$@" build --no-default-features
cargo "$@" test --no-default-features --examples
cargo "$@" build --no-default-features --features alloc
cargo "$@" test --no-default-features --features alloc --examples

cargo "$@" check --no-default-features --features tokio-02
cargo "$@" check --no-default-features --features tokio-03
fi
cargo "$@" build --no-default-features
cargo "$@" test --no-default-features --examples

if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
cargo doc
fi
cargo "$@" check --no-default-features --features tokio-02
cargo "$@" check --no-default-features --features tokio-03
1 change: 0 additions & 1 deletion src/parser/range.rs
Expand Up @@ -85,7 +85,6 @@ parser! {
/// assert!(parser.parse("!").is_err());
/// # }
/// ```
#[inline]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks unrelated?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a new warning about duplicate inline so I just removed it as I went.

pub fn recognize[Input, P](parser: P)(Input) -> <Input as StreamOnce>::Range
where [
P: Parser<Input>,
Expand Down