Skip to content

CI

CI #277

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
types: [opened, reopened, synchronize]
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, nightly]
steps:
- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Use the cache to share dependencies # keyed by Cargo.lock
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo2-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo2-
- name: Checkout sources
uses: actions/checkout@v2
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose -- --test-threads=1
- name: Run ignored tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose -- --ignored --test-threads=1
test-executors-no-ws-timed-fairness:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, nightly]
steps:
- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Use the cache to share dependencies # keyed by Cargo.lock
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo2-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo2-
- name: Checkout sources
uses: actions/checkout@v2
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path=executors/Cargo.toml --no-default-features --features threadpool-exec,cb-channel-exec,workstealing-exec,defaults,thread-pinning -- --test-threads=1
- name: Run ignored tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path=executors/Cargo.toml --no-default-features --features threadpool-exec,cb-channel-exec,workstealing-exec,defaults,thread-pinning -- --ignored --test-threads=1
test-executors-misc-features:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [stable, nightly]
feature: [ws-no-park, thread-pinning, numa-aware, produce-metrics]
steps:
- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Use the cache to share dependencies # keyed by Cargo.lock
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo2-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo2-
- name: Checkout sources
uses: actions/checkout@v2
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path=executors/Cargo.toml --features ${{ matrix.feature }} -- --test-threads=1
- name: Run ignored tests
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path=executors/Cargo.toml --features ${{ matrix.feature }} -- --ignored --test-threads=1
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2025-01-09
override: true
components: rustfmt, clippy
- name: Use the cache to share dependencies # keyed by Cargo.lock
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo2-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo2-
- name: Checkout sources
uses: actions/checkout@v2
- name: Run cargo clippy (default)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
- name: Run cargo clippy (ws-no-park)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path=executors/Cargo.toml --all-targets --features ws-no-park -- -D warnings
- name: Run cargo clippy (!ws-timed-fairness)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path=executors/Cargo.toml --all-targets --no-default-features --features threadpool-exec,cb-channel-exec,workstealing-exec,defaults,thread-pinning -- -D warnings
- name: Run cargo clippy (thread-pinning)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path=executors/Cargo.toml --all-targets --features thread-pinning -- -D warnings
- name: Run cargo clippy (numa-aware)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path=executors/Cargo.toml --all-targets --features numa-aware -- -D warnings
format:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2025-01-09
override: true
components: rustfmt, clippy
- name: Use the cache to share dependencies # keyed by Cargo.lock
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo2-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo2-
- name: Checkout sources
uses: actions/checkout@v2
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check