Bump strum from 0.27.2 to 0.28.0 #1390
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "**/*.md" | |
| - "LICENSE" | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - "**/*.md" | |
| - "LICENSE" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: full | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| # - Linux uses DUCKDB_DOWNLOAD_LIB (non-bundled) | |
| # - Windows uses pre-downloaded archives via DUCKDB_LIB_DIR | |
| # - bundled feature tested by --all-features | |
| name: Test ${{ matrix.name }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| include: | |
| - { | |
| name: Windows, | |
| target: x86_64-pc-windows-msvc, | |
| os: windows-latest, | |
| duckdb: libduckdb-windows-amd64.zip, | |
| } | |
| - { | |
| name: Linux, | |
| target: x86_64-unknown-linux-gnu, | |
| os: ubuntu-latest, | |
| duckdb: libduckdb-linux-amd64.zip, | |
| } | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| DUCKDB_DOWNLOAD_LIB: "1" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| target: ${{ matrix.target }} | |
| - uses: robinraju/release-downloader@v1.4 | |
| name: Download duckdb | |
| if: matrix.os == 'windows-latest' | |
| with: | |
| repository: "duckdb/duckdb" | |
| tag: "v1.5.1" | |
| fileName: ${{ matrix.duckdb }} | |
| out-file-path: . | |
| - run: cargo fmt --all -- --check | |
| if: matrix.os == 'ubuntu-latest' | |
| - name: run cargo clippy | |
| if: matrix.os == 'ubuntu-latest' | |
| run: cargo clippy --all-targets --all-features --locked -- -D warnings | |
| - name: Dry-run release of crates | |
| if: matrix.os == 'ubuntu-latest' | |
| run: cargo publish --workspace --dry-run | |
| # For windows | |
| - name: Windows extract duckdb | |
| if: matrix.os == 'windows-latest' | |
| uses: DuckSoft/extract-7z-action@v1.0 | |
| with: | |
| pathSource: D:\a\duckdb-rs\duckdb-rs\${{ matrix.duckdb }} | |
| pathTarget: ${{ github.workspace }}/libduckdb | |
| - name: Add path to PATH environment variable | |
| if: matrix.os == 'windows-latest' | |
| uses: myci-actions/export-env-var-powershell@1 | |
| with: | |
| name: PATH | |
| value: $env:PATH;${{ github.workspace }}/libduckdb | |
| - name: Run cargo-test | |
| if: matrix.os == 'windows-latest' | |
| run: cargo test --features "modern-full vtab-full" | |
| env: | |
| DUCKDB_LIB_DIR: ${{ github.workspace }}/libduckdb | |
| DUCKDB_INCLUDE_DIR: ${{ github.workspace }}/libduckdb | |
| - name: Build loadable extension | |
| if: matrix.os == 'ubuntu-latest' | |
| run: cargo build --example hello-ext --features="loadable-extension" | |
| - name: Build loadable extension (windows) | |
| if: matrix.os == 'windows-latest' | |
| run: cargo build --example hello-ext --features="loadable-extension" | |
| env: | |
| DUCKDB_LIB_DIR: ${{ github.workspace }}/libduckdb | |
| DUCKDB_INCLUDE_DIR: ${{ github.workspace }}/libduckdb | |
| LD_LIBRARY_PATH: ${{ github.workspace }}/libduckdb | |
| msrv: | |
| name: MSRV Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| cache-bin: false | |
| - uses: taiki-e/install-action@cargo-binstall | |
| - run: cargo binstall --no-confirm cargo-msrv | |
| - run: cargo msrv verify --path crates/duckdb | |
| - run: cargo msrv verify --path crates/duckdb-loadable-macros | |
| - run: cargo msrv verify --path crates/libduckdb-sys | |
| sanitizer: | |
| name: Address Sanitizer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: nightly-2026-03-03 | |
| - name: Tests with asan | |
| env: | |
| # PRs use a downloaded libduckdb for speed (no bundled C++ ASAN coverage). | |
| # Pushes to main keep extensions-full/bundled to preserve deeper coverage. | |
| ASAN_FEATURES: ${{ github.ref == 'refs/heads/main' && 'serde_json url r2d2 uuid polars extensions-full' || 'serde_json url r2d2 uuid polars' }} | |
| DUCKDB_DOWNLOAD_LIB: ${{ github.ref == 'refs/heads/main' && '0' || '1' }} | |
| RUSTFLAGS: -Zsanitizer=address -C debuginfo=0 | |
| RUSTDOCFLAGS: -Zsanitizer=address | |
| ASAN_OPTIONS: "detect_stack_use_after_return=1:detect_leaks=1:symbolize=1" | |
| # We cannot run "modern-full" with asan as the chrono feature will auto-load release binaries of | |
| # the ICU-extension, which are not built with ASAN and will cause a crash. | |
| run: cargo test --lib --tests --features "${ASAN_FEATURES}" --target x86_64-unknown-linux-gnu --package duckdb |