Merge pull request #1495 from gwenn/ci

Try to fix warnings
This commit is contained in:
gwenn 2024-04-13 10:08:17 +02:00 committed by GitHub
commit 5ed5a123a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,20 +39,20 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
# This has a matcher for test panics, so we use it even though elsewhere # This has a matcher for test panics, so we use it even though elsewhere
# we use actions-rs/toolchain. # we use actions-rs/toolchain.
- uses: hecrj/setup-rust-action@v1 - uses: hecrj/setup-rust-action@v2
with: with:
rust-version: stable${{ matrix.host }} rust-version: stable${{ matrix.host }}
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
# The `{ sharedKey: ... }` allows different actions to share the cache. # The `{ shared-key: ... }` allows different actions to share the cache.
# We're using a `fullBuild` key mostly as a "this needs to do the # We're using a `fullBuild` key mostly as a "this needs to do the
# complete" that needs to do the complete build (that is, including # complete" that needs to do the complete build (that is, including
# `--features 'bundled-full session buildtime_bindgen preupdate_hook'`), which is very # `--features 'bundled-full session buildtime_bindgen preupdate_hook'`), which is very
# slow, and has several deps. # slow, and has several deps.
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: { sharedKey: fullBuild } with: { shared-key: fullBuild }
- run: cargo build --features bundled --workspace --all-targets --verbose - run: cargo build --features bundled --workspace --all-targets --verbose
- run: cargo test --features bundled --workspace --all-targets --verbose - run: cargo test --features bundled --workspace --all-targets --verbose
@ -93,15 +93,15 @@ jobs:
# TODO: find a way to test this on windows :( # TODO: find a way to test this on windows :(
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
# This has a matcher for test panics, so we use it even though elsewhere # This has a matcher for test panics, so we use it even though elsewhere
# we use actions-rs/toolchain. # we use actions-rs/toolchain.
- uses: hecrj/setup-rust-action@v1 - uses: hecrj/setup-rust-action@v2
with: with:
rust-version: stable${{ matrix.host }} rust-version: stable${{ matrix.host }}
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: { sharedKey: fullBuild } with: { shared-key: fullBuild }
- run: cargo test --features 'bundled-sqlcipher' --workspace --all-targets --verbose - run: cargo test --features 'bundled-sqlcipher' --workspace --all-targets --verbose
- run: cargo test --features 'bundled-sqlcipher' --workspace --doc --verbose - run: cargo test --features 'bundled-sqlcipher' --workspace --doc --verbose
@ -126,8 +126,8 @@ jobs:
name: Test with sqlcipher name: Test with sqlcipher
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: hecrj/setup-rust-action@v1 - uses: hecrj/setup-rust-action@v2
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- run: sudo apt-get install sqlcipher libsqlcipher-dev - run: sudo apt-get install sqlcipher libsqlcipher-dev
- run: sqlcipher --version - run: sqlcipher --version
@ -139,9 +139,9 @@ jobs:
name: Address Sanitizer name: Address Sanitizer
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
# Need nightly rust. # Need nightly rust.
- uses: hecrj/setup-rust-action@v1 - uses: hecrj/setup-rust-action@v2
with: with:
rust-version: nightly rust-version: nightly
components: rust-src components: rust-src
@ -163,8 +163,8 @@ jobs:
name: Clippy name: Clippy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: hecrj/setup-rust-action@v1 - uses: hecrj/setup-rust-action@v2
with: with:
components: clippy components: clippy
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
@ -177,8 +177,8 @@ jobs:
name: Format name: Format
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: hecrj/setup-rust-action@v1 - uses: hecrj/setup-rust-action@v2
with: with:
components: rustfmt components: rustfmt
- run: cargo fmt --all -- --check - run: cargo fmt --all -- --check
@ -188,10 +188,10 @@ jobs:
name: Docs name: Docs
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: hecrj/setup-rust-action@v1 - uses: hecrj/setup-rust-action@v2
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: { sharedKey: fullBuild } with: { shared-key: fullBuild }
- run: cargo doc --features 'bundled-full session buildtime_bindgen preupdate_hook' --no-deps - run: cargo doc --features 'bundled-full session buildtime_bindgen preupdate_hook' --no-deps
env: { RUSTDOCFLAGS: -Dwarnings } env: { RUSTDOCFLAGS: -Dwarnings }
@ -199,7 +199,7 @@ jobs:
name: Generate code coverage name: Generate code coverage
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
with: with:
components: 'llvm-tools-preview' components: 'llvm-tools-preview'
@ -230,7 +230,8 @@ jobs:
-t lcov \ -t lcov \
-o lcov.info -o lcov.info
- name: Upload to codecov.io - name: Upload to codecov.io
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v4
with: with:
files: lcov.info files: lcov.info
fail_ci_if_error: true fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}