|
|
@ -19,10 +19,14 @@ jobs: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
timeout-minutes: 60 |
|
|
|
timeout-minutes: 60 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Checkout repository |
|
|
|
- uses: dtolnay/rust-toolchain@stable |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: stable |
|
|
|
toolchain: stable |
|
|
|
|
|
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
key: tarpaulin |
|
|
|
key: tarpaulin |
|
|
@ -30,11 +34,10 @@ jobs: |
|
|
|
uses: baptiste0928/cargo-install@v3.1.0 |
|
|
|
uses: baptiste0928/cargo-install@v3.1.0 |
|
|
|
with: |
|
|
|
with: |
|
|
|
crate: cargo-tarpaulin |
|
|
|
crate: cargo-tarpaulin |
|
|
|
|
|
|
|
|
|
|
|
- name: Run tarpaulin |
|
|
|
- name: Run tarpaulin |
|
|
|
uses: actions-rs/cargo@v1 |
|
|
|
run: cargo tarpaulin --workspace --features annex-b,intl_bundled,experimental --ignore-tests --engine llvm --out xml |
|
|
|
with: |
|
|
|
|
|
|
|
command: tarpaulin |
|
|
|
|
|
|
|
args: --workspace --features annex-b,intl_bundled,experimental --ignore-tests --engine llvm --out xml |
|
|
|
|
|
|
|
- name: Upload to codecov.io |
|
|
|
- name: Upload to codecov.io |
|
|
|
uses: codecov/codecov-action@v4 |
|
|
|
uses: codecov/codecov-action@v4 |
|
|
|
|
|
|
|
|
|
|
@ -48,10 +51,14 @@ jobs: |
|
|
|
- macos-latest |
|
|
|
- macos-latest |
|
|
|
- windows-latest |
|
|
|
- windows-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Checkout repository |
|
|
|
- uses: dtolnay/rust-toolchain@stable |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: stable |
|
|
|
toolchain: stable |
|
|
|
|
|
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- name: Build tests |
|
|
|
- name: Build tests |
|
|
|
run: cargo test --no-run --profile ci |
|
|
|
run: cargo test --no-run --profile ci |
|
|
@ -70,14 +77,19 @@ jobs: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
timeout-minutes: 60 |
|
|
|
timeout-minutes: 60 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Checkout repository |
|
|
|
|
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
# Get the rust_version from the Cargo.toml |
|
|
|
# Get the rust_version from the Cargo.toml |
|
|
|
- name: Get rust_version |
|
|
|
- name: Get rust_version |
|
|
|
id: rust_version |
|
|
|
id: rust_version |
|
|
|
run: echo "rust_version=$(grep '^rust-version' Cargo.toml | cut -d' ' -f3 | tr -d '"')" >> $GITHUB_OUTPUT |
|
|
|
run: echo "rust_version=$(grep '^rust-version' Cargo.toml | cut -d' ' -f3 | tr -d '"')" >> $GITHUB_OUTPUT |
|
|
|
- uses: dtolnay/rust-toolchain@stable |
|
|
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: ${{ steps.rust_version.outputs.rust_version }} |
|
|
|
toolchain: ${{ steps.rust_version.outputs.rust_version }} |
|
|
|
|
|
|
|
|
|
|
|
- name: Check compilation |
|
|
|
- name: Check compilation |
|
|
|
run: cargo check --all-features --all-targets |
|
|
|
run: cargo check --all-features --all-targets |
|
|
|
|
|
|
|
|
|
|
@ -86,11 +98,15 @@ jobs: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
timeout-minutes: 60 |
|
|
|
timeout-minutes: 60 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Checkout repository |
|
|
|
- uses: dtolnay/rust-toolchain@stable |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: stable |
|
|
|
toolchain: stable |
|
|
|
components: rustfmt |
|
|
|
components: rustfmt |
|
|
|
|
|
|
|
|
|
|
|
- name: Format (rustfmt) |
|
|
|
- name: Format (rustfmt) |
|
|
|
run: cargo fmt --all --check |
|
|
|
run: cargo fmt --all --check |
|
|
|
|
|
|
|
|
|
|
@ -99,18 +115,22 @@ jobs: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
timeout-minutes: 60 |
|
|
|
timeout-minutes: 60 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Checkout repository |
|
|
|
- uses: dtolnay/rust-toolchain@stable |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: stable |
|
|
|
toolchain: stable |
|
|
|
components: clippy |
|
|
|
components: clippy |
|
|
|
|
|
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
key: clippy |
|
|
|
key: clippy |
|
|
|
|
|
|
|
|
|
|
|
- name: Install cargo-workspaces |
|
|
|
- name: Install cargo-workspaces |
|
|
|
uses: actions-rs/install@v0.1 |
|
|
|
run: cargo install cargo-workspaces |
|
|
|
with: |
|
|
|
|
|
|
|
crate: cargo-workspaces |
|
|
|
|
|
|
|
- name: Clippy (All features) |
|
|
|
- name: Clippy (All features) |
|
|
|
run: cargo workspaces exec cargo clippy --all-features --all-targets |
|
|
|
run: cargo workspaces exec cargo clippy --all-features --all-targets |
|
|
|
- name: Clippy (No features) |
|
|
|
- name: Clippy (No features) |
|
|
@ -129,10 +149,14 @@ jobs: |
|
|
|
env: |
|
|
|
env: |
|
|
|
RUSTDOCFLAGS: -D warnings |
|
|
|
RUSTDOCFLAGS: -D warnings |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Checkout repository |
|
|
|
- uses: dtolnay/rust-toolchain@stable |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: stable |
|
|
|
toolchain: stable |
|
|
|
|
|
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
key: docs |
|
|
|
key: docs |
|
|
@ -144,18 +168,21 @@ jobs: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
timeout-minutes: 60 |
|
|
|
timeout-minutes: 60 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Checkout repository |
|
|
|
- uses: dtolnay/rust-toolchain@stable |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: stable |
|
|
|
toolchain: stable |
|
|
|
|
|
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
key: build-fuzz |
|
|
|
key: build-fuzz |
|
|
|
|
|
|
|
|
|
|
|
- name: Install cargo-fuzz |
|
|
|
- name: Install cargo-fuzz |
|
|
|
uses: actions-rs/install@v0.1 |
|
|
|
run: cargo install cargo-fuzz |
|
|
|
with: |
|
|
|
|
|
|
|
crate: cargo-fuzz |
|
|
|
|
|
|
|
version: latest |
|
|
|
|
|
|
|
- name: Build fuzz |
|
|
|
- name: Build fuzz |
|
|
|
run: cd tests/fuzz && cargo fuzz build -s none --dev |
|
|
|
run: cd tests/fuzz && cargo fuzz build -s none --dev |
|
|
|
|
|
|
|
|
|
|
@ -164,17 +191,20 @@ jobs: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
timeout-minutes: 60 |
|
|
|
timeout-minutes: 60 |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Checkout repository |
|
|
|
- uses: dtolnay/rust-toolchain@stable |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install Rust toolchain |
|
|
|
|
|
|
|
uses: dtolnay/rust-toolchain@stable |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: stable |
|
|
|
toolchain: stable |
|
|
|
|
|
|
|
|
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
key: build-run-examples |
|
|
|
key: build-run-examples |
|
|
|
|
|
|
|
|
|
|
|
- name: Install cargo-workspaces |
|
|
|
- name: Install cargo-workspaces |
|
|
|
uses: actions-rs/install@v0.1 |
|
|
|
run: cargo install cargo-workspaces |
|
|
|
with: |
|
|
|
|
|
|
|
crate: cargo-workspaces |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build (All features) |
|
|
|
- name: Build (All features) |
|
|
|
run: cargo workspaces exec cargo build --all-features --all-targets --profile ci |
|
|
|
run: cargo workspaces exec cargo build --all-features --all-targets --profile ci |
|
|
|