From 868f50a724399cfdb3cc45b0067bbb20e9e7e401 Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Tue, 11 Jun 2024 16:23:58 -0700 Subject: [PATCH] Update actions versions to Node 20 (#94) --- .github/workflows/dist.yml | 69 +++++++++++++++++++++++++++----------- 1 file changed, 49 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 19e0c9f7..f2eb158f 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -41,7 +41,7 @@ jobs: - uses: actions/checkout@v4 - uses: psf/black@stable - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.12" @@ -79,7 +79,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python_version }} @@ -123,11 +123,40 @@ jobs: RPYBUILD_STRIP_LIBPYTHON: "1" RPYBUILD_CC_LAUNCHER: ccache - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: "dist-${{ runner.os }}" + name: "dist-${{ runner.os }}-${{ matrix.python_version }}" path: dist + merge: + runs-on: ubuntu-latest + needs: [cross-build, build] + steps: + - name: Merge Windows Artifacts + uses: actions/upload-artifact/merge@v4 + with: + name: dist-Windows + pattern: dist-Windows* + delete-merged: true + - name: Merge Linux Artifacts + uses: actions/upload-artifact/merge@v4 + with: + name: dist-Linux + pattern: dist-Linux* + delete-merged: true + - name: Merge macOS Artifacts + uses: actions/upload-artifact/merge@v4 + with: + name: dist-macOS + pattern: dist-macOS* + delete-merged: true + - name: Merge raspbian Artifacts + uses: actions/upload-artifact/merge@v4 + with: + name: dist-raspbian + pattern: dist-raspbian* + delete-merged: true + # # Build roboRIO/raspbian wheels # @@ -143,26 +172,26 @@ jobs: name: roborio - container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py38 - name: raspbian + name: raspbian-py38 - container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py39 - name: raspbian + name: raspbian-py39 - container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py310 - name: raspbian + name: raspbian-py310 - container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py311 - name: raspbian + name: raspbian-py311 - container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py312 - name: raspbian + name: raspbian-py312 - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py38 - name: raspbian + name: raspbian-aarch64-py38 - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py39 - name: raspbian + name: raspbian-aarch64-py39 - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py310 - name: raspbian + name: raspbian-aarch64-py310 - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py311 - name: raspbian + name: raspbian-aarch64-py311 - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py312 - name: raspbian + name: raspbian-aarch64-py312 container: image: "${{ matrix.os.container }}" @@ -206,7 +235,7 @@ jobs: RPYBUILD_STRIP_LIBPYTHON: "1" RPYBUILD_CC_LAUNCHER: ccache - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: dist-${{ matrix.os.name }} path: dist @@ -221,12 +250,12 @@ jobs: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: dist-roborio path: dist/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: dist-raspbian path: dist/ @@ -251,17 +280,17 @@ jobs: with: fetch-depth: 0 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: dist-Windows path: dist/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: dist-macOS path: dist/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: dist-Linux path: dist/