Skip to content

Commit

Permalink
Remove tokio-unstable from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Nov 1, 2024
1 parent 66b59e0 commit 49bd490
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 42 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ jobs:
- aarch64-unknown-linux-gnu
- x86_64-pc-windows-gnu
- x86_64-unknown-linux-gnu
features:
- flags: "--all-features"
env: 'RUSTFLAGS="--cfg tokio_unstable"'
- flags: ""
- flags: "--no-default-features"
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -35,14 +30,14 @@ jobs:
uses: taiki-e/install-action@cross

- name: Build
run: cross build --all-features --release --target=${{ matrix.target }}
run: cross build --release --target=${{ matrix.target }}

build-examples:
name: Build Examples
runs-on: ubuntu-latest
needs: [lints, docs]
env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: "-D warnings --cfg tokio_unstable"
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -56,13 +51,6 @@ jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
features:
- flags: "--all-features"
env: 'RUSTFLAGS="--cfg tokio_unstable"'
- flags: ""
- flags: "--no-default-features"
needs: [lints, docs]
env:
RUSTFLAGS: "-D warnings"
Expand All @@ -74,7 +62,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: Run cargo test
run: ${{ matrix.features.env }} cargo test ${{ matrix.features.flags }} -- --test-threads 1
run: cargo test -- --test-threads 1

msrv:
name: Minimum Supported Rust Version
Expand Down Expand Up @@ -164,13 +152,6 @@ jobs:
lints:
name: Lints
runs-on: ubuntu-latest
strategy:
matrix:
features:
- flags: "--all-features"
env: 'RUSTFLAGS="--cfg tokio_unstable"'
- flags: ""
- flags: "--no-default-features"
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -184,7 +165,7 @@ jobs:
run: cargo fmt --all -- --check

- name: Run cargo clippy
run: ${{ matrix.features.env }} cargo clippy ${{ matrix.features.flags }} --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings

docs:
name: Documentation
Expand Down Expand Up @@ -219,13 +200,13 @@ jobs:
- name: Build
env:
RUSTFLAGS: "-Z sanitizer=address"
run: ${{ matrix.features.env }} cargo build ${{ matrix.features.flags }} --target x86_64-unknown-linux-gnu --tests
run: cargo build --target x86_64-unknown-linux-gnu --tests

- name: Run tests with leak sanitizer
env:
RUSTFLAGS: "-Z sanitizer=address"
run:
${{ matrix.features.env }} cargo test ${{ matrix.features.flags }}
cargo test
--target x86_64-unknown-linux-gnu --tests
-- --test-threads 1

Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ jobs:
name: Codecov.io
continue-on-error: true
runs-on: ubuntu-latest
strategy:
matrix:
features:
- flags: "--all-features"
env: 'RUSTFLAGS="--cfg tokio_unstable"'
- flags: ""
- flags: "--no-default-features"
env:
RUST_TEST_THREADS: "1"
steps:
Expand All @@ -32,7 +25,7 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov
- name: Compute Coverage
run:
${{ matrix.features.env }} cargo llvm-cov ${{ matrix.features.flags }} --workspace --ignore-filename-regex tests.rs --codecov --output-path codecov.json
cargo llvm-cov --workspace --ignore-filename-regex tests.rs --codecov --output-path codecov.json
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
features:
- flags: "--all-features"
env: 'RUSTFLAGS="--cfg tokio_unstable"'
- flags: ""
- flags: "--no-default-features"
permissions:
contents: read
security-events: write
Expand All @@ -49,9 +42,7 @@ jobs:

- name: Run rust-clippy
run:
${{ matrix.features.env }}
cargo clippy
${{ matrix.features.flags }}
--all-targets
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true
Expand Down

0 comments on commit 49bd490

Please sign in to comment.