From 2bc6e378b3ed496f8a45e978fab59f194e12a348 Mon Sep 17 00:00:00 2001 From: Rich Brown Date: Sun, 9 Jun 2024 08:00:20 -0400 Subject: [PATCH] Change out richb-hanover/cargo for clechasseur/rs-cargo@v2 to get Node 20 tests --- .github/actions/build-prqlc-c/action.yaml | 2 +- .github/actions/build-prqlc/action.yaml | 2 +- .github/actions/time-compilation/action.yaml | 2 +- .github/workflows/nightly.yaml | 6 +++--- .github/workflows/test-prqlc-c.yaml | 2 +- .github/workflows/test-rust.yaml | 12 ++++++------ 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/actions/build-prqlc-c/action.yaml b/.github/actions/build-prqlc-c/action.yaml index f0dcbcbcf893..92fda68cdb8b 100644 --- a/.github/actions/build-prqlc-c/action.yaml +++ b/.github/actions/build-prqlc-c/action.yaml @@ -57,7 +57,7 @@ runs: echo 'CC=aarch64-linux-gnu-gcc' >>"$GITHUB_ENV" - name: cargo build - uses: richb-hanover/cargo@v1.1.0 + uses: clechasseur/rs-cargo@v2 with: command: build args: diff --git a/.github/actions/build-prqlc/action.yaml b/.github/actions/build-prqlc/action.yaml index b5aa98f7a811..316a4c2dea17 100644 --- a/.github/actions/build-prqlc/action.yaml +++ b/.github/actions/build-prqlc/action.yaml @@ -56,7 +56,7 @@ runs: echo 'CC=aarch64-linux-gnu-gcc' >>"$GITHUB_ENV" - name: cargo build - uses: richb-hanover/cargo@v1.1.0 + uses: clechasseur/rs-cargo@v2 with: command: build # We previously had `--package=prqlc` for all, but this caches much diff --git a/.github/actions/time-compilation/action.yaml b/.github/actions/time-compilation/action.yaml index b642d84dbadb..3d15692fdf09 100644 --- a/.github/actions/time-compilation/action.yaml +++ b/.github/actions/time-compilation/action.yaml @@ -25,7 +25,7 @@ runs: shell: bash run: rm -rf target/cargo-timings - name: 🏭 Compile - uses: richb-hanover/cargo@v1.1.0 + uses: clechasseur/rs-cargo@v2 with: command: build args: --timings --all-targets diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index f37920a66112..78fc8c45de84 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: richb-hanover/cargo@1.1.1 + - uses: clechasseur/rs-cargo@v2 with: command: bench args: --timings --all-targets @@ -100,11 +100,11 @@ jobs: crate: cargo-udeps # Once with all targets, once without, to find anything that should be in # `dev` but is more general. - - uses: richb-hanover/cargo@1.1.1 + - uses: clechasseur/rs-cargo@v2 with: command: udeps args: --all-targets - - uses: richb-hanover/cargo@1.1.1 + - uses: clechasseur/rs-cargo@v2 with: command: udeps diff --git a/.github/workflows/test-prqlc-c.yaml b/.github/workflows/test-prqlc-c.yaml index 5906d77bf5ff..e14607c00b8c 100644 --- a/.github/workflows/test-prqlc-c.yaml +++ b/.github/workflows/test-prqlc-c.yaml @@ -18,7 +18,7 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} shared-key: lib - name: Build - uses: richb-hanover/cargo@1.1.1 + uses: clechasseur/rs-cargo@v2 with: command: build # Currently requires a release build; would be useful to allow a debug build. diff --git a/.github/workflows/test-rust.yaml b/.github/workflows/test-rust.yaml index 92db357c585d..c832e584b4f9 100644 --- a/.github/workflows/test-rust.yaml +++ b/.github/workflows/test-rust.yaml @@ -86,7 +86,7 @@ jobs: # We split up the test compilation as recommended in # https://matklad.github.io/2021/09/04/fast-rust-builds.html - name: 🏭 Compile - uses: richb-hanover/cargo@1.1.1 + uses: clechasseur/rs-cargo@v2 with: command: test args: > @@ -99,7 +99,7 @@ jobs: timeout: 60000 if: ${{ contains(inputs.features, 'test-dbs-external') }} - name: πŸ“‹ Test - uses: richb-hanover/cargo@1.1.1 + uses: clechasseur/rs-cargo@v2 with: command: insta # Here, we also add: @@ -111,7 +111,7 @@ jobs: 'test-dbs') && inputs.target == 'x86_64-unknown-linux-gnu' && '--unreferenced=auto' || '' }} - name: πŸ“Ž Clippy - uses: richb-hanover/cargo@1.1.1 + uses: clechasseur/rs-cargo@v2 with: command: clippy # Note that `--all-targets` doesn't refer to targets like @@ -121,7 +121,7 @@ jobs: --all-targets --target=${{ inputs.target }} --no-default-features --features=${{ inputs.features }} -- -D warnings - name: ⌨️ Fmt - uses: richb-hanover/cargo@1.1.1 + uses: clechasseur/rs-cargo@v2 with: command: fmt args: --all --check @@ -130,7 +130,7 @@ jobs: # https://github.com/duckdb/duckdb-rs/issues/179#issuecomment-1710986020. if: inputs.nightly == 'true' && inputs.target != 'wasm32-unknown-unknown' - uses: richb-hanover/cargo@1.1.1 + uses: clechasseur/rs-cargo@v2 with: command: doc # Only run with deps on nightly, since it's much slower, and so farβ„’ @@ -145,7 +145,7 @@ jobs: if: ${{ github.ref == 'refs/heads/main' && steps.cache.outputs.cache-hit == 'false' }} - uses: richb-hanover/cargo@1.1.1 + uses: clechasseur/rs-cargo@v2 with: command: build args: