Skip to content

Commit

Permalink
github: update setup-python and upload-artifact actions
Browse files Browse the repository at this point in the history
These two trigger warnings:

> Node.js 16 actions are deprecated. Please update the following actions
> to use Node.js 20: actions/setup-python@v4, actions/upload-artifact@v3.
> For more information see:
> https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
  • Loading branch information
whot committed Apr 22, 2024
1 parent 6b340d6 commit a715404
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@v4
# install python so we get pip for meson
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- uses: ./.github/actions/pkginstall
Expand All @@ -45,7 +45,7 @@ jobs:
with:
ninja_args: dist
# Capture all the meson logs, even if we failed
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ always() }} # even if we fail
with:
name: meson test logs-${{matrix.compiler}} ${{matrix.meson_options}}
Expand All @@ -56,7 +56,7 @@ jobs:
- name: move tarballs to top level
run: mv builddir/meson-dist/libwacom-*tar.xz .
# We only need one tarball for the build-from-tarball job
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ matrix.compiler == 'gcc' && matrix.meson_options == '' }}
with:
name: tarball
Expand All @@ -70,7 +70,7 @@ jobs:
steps:
- uses: actions/checkout@v4
# install python so we get pip for meson
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- uses: ./.github/actions/pkginstall
Expand All @@ -86,7 +86,7 @@ jobs:
env:
CC: ${{matrix.compiler}}
# Capture all the meson logs, even if we failed
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ always() }} # even if we fail
with:
name: meson test logs-valgrind
Expand All @@ -113,7 +113,7 @@ jobs:
steps:
- uses: actions/checkout@v4
# install python so we get pip for meson
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
# Run as sudo because we install to /etc and thus need the pip
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
steps:
- uses: actions/checkout@v4
# install python so we get pip for meson
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
# Run as sudo because we install to /etc and thus need the pip
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.8'
- uses: ./.github/actions/pkginstall
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
apt: $UBUNTU_PACKAGES
# install python so we get pip for meson
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- uses: ./.github/actions/pkginstall
Expand Down

0 comments on commit a715404

Please sign in to comment.