From 594234e50dcc04a1348141a0cf110009d7e93953 Mon Sep 17 00:00:00 2001 From: JONBRWN Date: Tue, 28 Apr 2026 10:38:57 -0700 Subject: [PATCH] chore(ci): update GitHub Actions to current versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - actions/checkout v2→v4 - Swatinem/rust-cache v1→v2 - actions-rs/toolchain→dtolnay/rust-toolchain (unmaintained) - actions-rs/cargo→direct cargo run commands - actions-rs/audit-check→rustsec/audit-check@v2 - codecov/codecov-action v1→v4 - actions/setup-python v1→v5 - Miri nightly-2022-12-05→nightly (pinned date was 3 years stale) - Remove stale unskip.patch step in integration-ipc (patch no longer applies against current apache/arrow) Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/coverage.yml | 6 +- .github/workflows/docs.yml | 11 ++-- .github/workflows/integration-ipc.yml | 9 +-- .github/workflows/security.yml | 4 +- .github/workflows/test.yml | 80 ++++++++++++--------------- 5 files changed, 47 insertions(+), 63 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 69d448cd7ca..623b93e2026 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,7 +6,7 @@ jobs: coverage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true # needed to test IPC, which are located in a submodule - name: Install Rust @@ -23,11 +23,11 @@ jobs: python parquet_integration/write_parquet.py python tests/it/io/orc/write.py deactivate - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - name: Generate code coverage run: cargo llvm-cov --features full --lcov --output-path lcov.info - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos files: lcov.info diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2a1d92de9a1..ff9b0cf2cd5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,7 +6,7 @@ jobs: guide: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup mdBook uses: peaceiris/actions-mdbook@v1 @@ -27,17 +27,14 @@ jobs: docs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly - profile: minimal - override: true components: rustfmt, rust-src - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - name: Build Documentation run: cargo doc --lib --features full --no-deps diff --git a/.github/workflows/integration-ipc.yml b/.github/workflows/integration-ipc.yml index 11aa79bed50..56278f9ab91 100644 --- a/.github/workflows/integration-ipc.yml +++ b/.github/workflows/integration-ipc.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Arrow - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: apache/arrow submodules: true @@ -17,7 +17,7 @@ jobs: - name: Remove Rust from arrow run: rm -rf rust/ - name: Checkout Arrow Rust - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: rust fetch-depth: 0 @@ -25,11 +25,8 @@ jobs: # which is incompatible with this. Let's monkey patch it - name: Fix compilation run: cp rust/integration-testing/rust_build.sh ci/scripts/rust_build.sh - # unskip many of the tests - - name: Test more cases - run: git apply rust/integration-testing/unskip.patch - name: Setup Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Setup Archery diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index a1d19e6f8c6..45d87aef924 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -4,7 +4,7 @@ jobs: security_audit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions-rs/audit-check@v1 + - uses: actions/checkout@v4 + - uses: rustsec/audit-check@v2 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a9e91c2435..359d1c154b0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: name: Test full runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true # needed to test IPC, which are located in a submodule - name: Install Rust @@ -23,7 +23,7 @@ jobs: python parquet_integration/write_parquet.py python tests/it/io/orc/write.py deactivate - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - name: Run run: cargo test --features full @@ -34,12 +34,12 @@ jobs: os: [windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true # needed to test IPC, which are located in a submodule - name: Install Rust run: rustup update stable - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - name: Run shell: bash run: | @@ -50,10 +50,10 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Rust run: rustup update stable - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - name: Install clippy run: rustup component add clippy - name: "clippy --all" @@ -63,10 +63,10 @@ jobs: name: fmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Rust run: rustup update stable - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - name: Install rustfmt run: rustup component add rustfmt - name: Run @@ -76,12 +76,10 @@ jobs: name: Miri runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2022-12-05 - override: true - - uses: Swatinem/rust-cache@v1 + - uses: actions/checkout@v4 + - name: Install Rust + uses: dtolnay/rust-toolchain@nightly + - uses: Swatinem/rust-cache@v2 with: key: key1 - name: Install Miri @@ -97,14 +95,12 @@ jobs: name: MIRI on IO IPC runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true # needed to test IPC, which are located in a submodule - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2022-12-05 - override: true - - uses: Swatinem/rust-cache@v1 + - name: Install Rust + uses: dtolnay/rust-toolchain@nightly + - uses: Swatinem/rust-cache@v2 with: key: key1 - name: Install Miri @@ -118,12 +114,10 @@ jobs: name: MIRI on IO IPC mmaping runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2022-12-05 - override: true - - uses: Swatinem/rust-cache@v1 + - uses: actions/checkout@v4 + - name: Install Rust + uses: dtolnay/rust-toolchain@nightly + - uses: Swatinem/rust-cache@v2 with: key: key1 - name: Install Miri @@ -137,12 +131,12 @@ jobs: name: Feature coverage runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Rust run: rustup update stable - name: Setup all features run: cargo install cargo-all-features - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 - name: Run run: cargo check-all-features - name: Bench Check @@ -161,31 +155,27 @@ jobs: - mips-unknown-linux-gnu - arm-linux-androideabi steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2022-12-05 - target: ${{ matrix.target }} - override: true - - uses: Swatinem/rust-cache@v1 - - uses: actions-rs/cargo@v1 + - name: Install Rust + uses: dtolnay/rust-toolchain@nightly with: - use-cross: true - command: check - args: --features=compute_merge_sort,io_ipc,io_csv,io_print,io_json,io_parquet --target ${{ matrix.target }} + targets: ${{ matrix.target }} + - uses: Swatinem/rust-cache@v2 + - name: Install cross + run: cargo install cross + - name: Run + run: cross check --features=compute_merge_sort,io_ipc,io_csv,io_print,io_json,io_parquet --target ${{ matrix.target }} linux-simd-test: name: SIMD runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2022-12-05 - override: true - - uses: Swatinem/rust-cache@v1 + - uses: actions/checkout@v4 + - name: Install Rust + uses: dtolnay/rust-toolchain@nightly + - uses: Swatinem/rust-cache@v2 - name: Run # no need to run over all features: simd only affects the core run: cargo test --tests --no-default-features --features compute,simd