Skip to content

Commit

Permalink
Update actions versions to Node 20 (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored Jun 11, 2024
1 parent cb1ab60 commit 868f50a
Showing 1 changed file with 49 additions and 20 deletions.
69 changes: 49 additions & 20 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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
#
Expand All @@ -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 }}"
Expand Down Expand Up @@ -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
Expand All @@ -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/
Expand All @@ -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/
Expand Down

0 comments on commit 868f50a

Please sign in to comment.