mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 05:48:56 +08:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into register_ext
This commit is contained in:
		
							
								
								
									
										41
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										41
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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 }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user