diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fa8803e..3ac514a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,11 @@ jobs: if: ${{ runner.os == 'Linux' }} run: sudo apt-get update && sudo apt-get install --yes libdbus-1-dev - - uses: dtolnay/rust-toolchain@stable + # Pinned: the 90% per-file coverage gate below counts lines as this + # toolchain's llvm-cov does. Rust 1.100.0 counts the same code differently + # (adapter.rs: 2546 -> 2472 lines, 92.8% -> 88.5% covered) and failed + # the gate with no source change. Move it deliberately, with the gate. + - uses: dtolnay/rust-toolchain@1.99.1 with: components: rustfmt, clippy, llvm-tools-preview diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 369a1ed8..e155c78e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,11 @@ jobs: - name: Install Linux Secret Service build dependency run: sudo apt-get update && sudo apt-get install --yes libdbus-1-dev - - uses: dtolnay/rust-toolchain@stable + # Pinned: the 90% per-file coverage gate below counts lines as this + # toolchain's llvm-cov does. Rust 1.100.0 counts the same code differently + # (adapter.rs: 2546 -> 2472 lines, 92.8% -> 88.5% covered) and failed + # the gate with no source change. Move it deliberately, with the gate. + - uses: dtolnay/rust-toolchain@1.99.1 with: components: rustfmt, clippy