From a5c0b765d3a5df19c0c4dad1e4e11ffcf2f72013 Mon Sep 17 00:00:00 2001 From: James Watkins-Harvey Date: Wed, 5 Jun 2024 17:03:45 -0400 Subject: [PATCH 1/2] Bump GitHub Actions --- .github/workflows/build-binaries.yml | 14 ++++++-------- .github/workflows/ci.yml | 14 ++++++-------- .github/workflows/run-bench.yml | 8 ++++---- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 1b745879..9fdb46a6 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -29,16 +29,16 @@ jobs: package-suffix: windows-amd64 runs-on: ${{ matrix.runsOn || matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive # actions/setup-python doesn't yet support Linux ARM - if: ${{ matrix.os != 'ubuntu-arm' }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.12" - if: ${{ matrix.os == 'ubuntu-arm' }} - uses: deadsnakes/action@v2.1.1 + uses: deadsnakes/action@v3 with: python-version: "3.12" @@ -46,11 +46,9 @@ jobs: # command to build with cibuildwheel which uses rustup install defined # in pyproject.toml) - if: ${{ runner.os != 'Linux' }} - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - if: ${{ runner.os != 'Linux' }} - uses: Swatinem/rust-cache@v1 + uses: Swatinem/rust-cache@v2 with: working-directory: temporalio/bridge @@ -73,7 +71,7 @@ jobs: - run: poe test-dist-single # Upload dist - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: packages-${{ matrix.package-suffix }} path: dist diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e3503b7..a73aa8ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,22 +36,20 @@ jobs: python: "3.8" runs-on: ${{ matrix.runsOn || matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - uses: Swatinem/rust-cache@v1 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 with: working-directory: temporalio/bridge # actions/setup-python doesn't yet support Linux ARM - if: ${{ matrix.os != 'ubuntu-arm' }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - if: ${{ matrix.os == 'ubuntu-arm' }} - uses: deadsnakes/action@v2.1.1 + uses: deadsnakes/action@v3 with: python-version: ${{ matrix.python }} # Using fixed Poetry version until @@ -91,7 +89,7 @@ jobs: run: npx vercel deploy build/apidocs -t ${{ secrets.VERCEL_TOKEN }} --name python --scope temporal --prod --yes # Confirm README ToC is generated properly - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 - name: Check generated README ToC if: ${{ matrix.docsTarget }} run: | diff --git a/.github/workflows/run-bench.yml b/.github/workflows/run-bench.yml index 36b4858c..bfb5ac92 100644 --- a/.github/workflows/run-bench.yml +++ b/.github/workflows/run-bench.yml @@ -26,16 +26,16 @@ jobs: runs-on: ${{ matrix.os }} steps: # Prepare - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 with: working-directory: temporalio/bridge - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.12" From 275c7aad18e501559f33653dfedd8dc0edd0db27 Mon Sep 17 00:00:00 2001 From: James Watkins-Harvey Date: Wed, 5 Jun 2024 17:08:11 -0400 Subject: [PATCH 2/2] deadsnake don't have a v3 tag alias --- .github/workflows/build-binaries.yml | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 9fdb46a6..4cdd15d4 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -38,7 +38,7 @@ jobs: with: python-version: "3.12" - if: ${{ matrix.os == 'ubuntu-arm' }} - uses: deadsnakes/action@v3 + uses: deadsnakes/action@v3.1.0 with: python-version: "3.12" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a73aa8ea..5fcda659 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: with: python-version: ${{ matrix.python }} - if: ${{ matrix.os == 'ubuntu-arm' }} - uses: deadsnakes/action@v3 + uses: deadsnakes/action@v3.1.0 with: python-version: ${{ matrix.python }} # Using fixed Poetry version until