From 4016c96c960a16ea00721fac403c51efb2dea921 Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Thu, 12 Sep 2024 13:42:28 +0800 Subject: [PATCH] update deprecated CI actions (#484) --- .github/workflows/build.yml | 52 ++++++++++++++-------------- .github/workflows/feature-matrix.yml | 8 ++--- .github/workflows/unit.yml | 4 +-- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 186874a8..09c31c41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: shell: msys2 {0} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -44,7 +44,7 @@ jobs: popd - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Windows MSYS2 - msystem=${{ matrix.msystem }} path: pkg/ @@ -75,7 +75,7 @@ jobs: _QT_NAME: mingw141_${{ matrix.profile }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -96,7 +96,7 @@ jobs: ./packages/msys/build-xp.sh -p ${{ matrix.profile }} $( [[ ${{ matrix.isUcrt }} -eq 1 ]] && echo --ucrt 22621 ) - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Windows NT 5.x - profile=${{ matrix.profile }} path: dist/* @@ -106,7 +106,7 @@ jobs: runs-on: windows-2019 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -135,7 +135,7 @@ jobs: popd - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Windows MSVC x64 path: pkg/ @@ -145,7 +145,7 @@ jobs: runs-on: windows-2019 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -174,7 +174,7 @@ jobs: popd - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Windows MSVC ARM64EC (do not use) path: pkg/ @@ -192,7 +192,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -201,7 +201,7 @@ jobs: podman run --rm -v $PWD:/mnt -w /mnt $IMAGE ./packages/debian/01-in-docker.sh - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Debian ${{ matrix.version }} ${{ matrix.arch }} path: dist/*.deb @@ -218,7 +218,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -227,7 +227,7 @@ jobs: podman run --rm -v $PWD:/mnt -w /mnt $IMAGE ./packages/debian/01-in-docker.sh - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Ubuntu ${{ matrix.version }} amd64 path: dist/*.deb @@ -239,7 +239,7 @@ jobs: IMAGE: docker.io/amd64/archlinux:latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -248,7 +248,7 @@ jobs: podman run --security-opt seccomp=unconfined --rm -v $PWD:/mnt -w /mnt $IMAGE ./packages/archlinux/01-in-docker.sh - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Arch Linux path: dist/*.pkg.tar.zst @@ -264,7 +264,7 @@ jobs: IMAGE: docker.io/amd64/fedora:${{ matrix.version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -273,7 +273,7 @@ jobs: podman run --security-opt seccomp=unconfined --rm -v $PWD:/mnt -w /mnt $IMAGE ./packages/fedora/01-in-docker.sh - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Fedora ${{ matrix.version }} x86_64 path: dist/*.rpm @@ -289,7 +289,7 @@ jobs: IMAGE: docker.io/opensuse/${{ matrix.edition }}:latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -298,7 +298,7 @@ jobs: podman run --security-opt seccomp=unconfined --rm -v $PWD:/mnt -w /mnt $IMAGE ./packages/opensuse/01-in-docker.sh - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: openSUSE ${{ matrix.edition }} x86_64 path: dist/*.rpm @@ -310,7 +310,7 @@ jobs: IMAGE: docker.io/amd64/alpine:latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -319,7 +319,7 @@ jobs: podman run --security-opt seccomp=unconfined --rm -v $PWD:/mnt -w /mnt $IMAGE ./packages/alpine/01-in-docker.sh - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: musl-based Linux (latest Alpine) path: dist/*.apk @@ -331,7 +331,7 @@ jobs: IMAGE: quay.io/redpanda-cpp/appimage-builder-x86_64:20240304.0 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -340,7 +340,7 @@ jobs: podman run --rm -v $PWD:/mnt -w /mnt $IMAGE ./packages/appimage/01-in-docker.sh - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Linux AppImage path: dist/*.AppImage @@ -350,7 +350,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -359,7 +359,7 @@ jobs: packages/debian-static/builddeb.sh - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Static Deb path: dist/*.deb @@ -369,7 +369,7 @@ jobs: runs-on: macos-12 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -396,7 +396,7 @@ jobs: tar -cJf RedPandaIDE.tar.xz RedPandaIDE.app - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: macOS x86_64 path: pkg/bin/RedPandaIDE.tar.xz diff --git a/.github/workflows/feature-matrix.yml b/.github/workflows/feature-matrix.yml index a96e19ce..b5981e0a 100644 --- a/.github/workflows/feature-matrix.yml +++ b/.github/workflows/feature-matrix.yml @@ -11,7 +11,7 @@ jobs: lua_addon: ["y", "n"] sdcc: ["y", "n"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -34,7 +34,7 @@ jobs: tar -cf "pkg/$name.tar" -C pkg "$name" - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Ubuntu 22.04 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }} path: pkg/*.tar @@ -47,7 +47,7 @@ jobs: lua_addon: ["y", "n"] sdcc: ["y", "n"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -76,7 +76,7 @@ jobs: rm $install_dir/vc_redist.x64.exe - name: Upload - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Windows MSVC x64 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }} path: pkg/* diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 4dba05ef..9f634b8b 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -7,7 +7,7 @@ jobs: name: Unix makefile escape runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -35,7 +35,7 @@ jobs: name: Teal–Lua consistency runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0