From 292412232011487e5e8438033ab8624c1c5a98a6 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sat, 21 Oct 2023 12:14:35 -0700 Subject: [PATCH] ci: Add a job to test min-versions This will fail because of https://github.com/wangfenjin/duckdb-rs/issues/134, so we'll wait for that to resolve before merging --- .github/workflows/tests.yaml | 21 +++++++++++++++++++++ prqlc/prql-compiler/Cargo.toml | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 44d34444e64e..cc1b77dec9a1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -490,6 +490,27 @@ jobs: working-directory: prqlc/prqlc run: cargo msrv verify + test-deps-min-versions: + runs-on: ubuntu-latest + needs: rules + if: needs.rules.outputs.nightly == 'true' + steps: + - name: 📂 Checkout code + uses: actions/checkout@v3 + - run: rustup toolchain add nightly + - uses: baptiste0928/cargo-install@v2 + with: + crate: cargo-hack + - uses: baptiste0928/cargo-install@v2 + with: + crate: cargo-minimal-versions + - name: 💰 Cache + uses: Swatinem/rust-cache@v2 + with: + save-if: ${{ github.ref == 'refs/heads/main' }} + - name: Verify minimum rust version + run: cargo minimal-versions test + check-ok-to-merge: # This indicates to GitHub whether everything in this workflow has passed # and (unlike if we included each task in the branch's GitHub required diff --git a/prqlc/prql-compiler/Cargo.toml b/prqlc/prql-compiler/Cargo.toml index 112b39bff7e6..e1501708add9 100644 --- a/prqlc/prql-compiler/Cargo.toml +++ b/prqlc/prql-compiler/Cargo.toml @@ -51,7 +51,7 @@ mysql = {version = "24", optional = true} pg_bigdecimal = {version = "0.1", optional = true} postgres = {version = "0.19", optional = true} rusqlite = {version = "0.29.0", optional = true, features = ["bundled", "csvtab"]} -tiberius = {version = "0.12", optional = true, features = ["sql-browser-tokio", "bigdecimal", "time"]} +tiberius = {version = "0.12.2", optional = true, features = ["sql-browser-tokio", "bigdecimal", "time"]} tokio = {version = "1", optional = true, features = ["full"]} tokio-util = {version = "0.7", optional = true, features = ["compat"]}