From 884cdc8386a27823f49fa3ffed250769aa70f6c7 Mon Sep 17 00:00:00 2001 From: Nickolay Olshevsky Date: Thu, 14 Mar 2024 16:29:34 +0200 Subject: [PATCH] CI: bump actions versions to use node.js 20, where applicable. --- .github/workflows/centos-and-fedora.yml | 20 +++++++++---------- .github/workflows/codeql.yml | 8 ++++---- .github/workflows/coverity.yml | 2 +- .github/workflows/debian.yml | 4 ++-- .github/workflows/fuzzing.yml | 2 +- .github/workflows/lint.yml | 8 ++++---- .github/workflows/macos.yml | 6 +++--- .github/workflows/nix.yml | 2 +- .github/workflows/time-machine.yml | 8 ++++---- .github/workflows/ubuntu.yml | 26 ++++++++++++------------- .github/workflows/windows-msys2.yml | 4 ++-- .github/workflows/windows-native.yml | 4 ++-- 12 files changed, 47 insertions(+), 47 deletions(-) diff --git a/.github/workflows/centos-and-fedora.yml b/.github/workflows/centos-and-fedora.yml index 522c5b6db3..ad40a9fd37 100644 --- a/.github/workflows/centos-and-fedora.yml +++ b/.github/workflows/centos-and-fedora.yml @@ -104,7 +104,7 @@ jobs: env: ${{ matrix.env }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -187,7 +187,7 @@ jobs: - name: Checkout shell test framework if: env.BUILD_MODE != 'coverage' && env.SHARED_LIBS == 'on' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: kward/shunit2 path: ci/tests/shunit2 @@ -218,7 +218,7 @@ jobs: run: yum -y install rpm-build - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -229,14 +229,14 @@ jobs: run: cpack -B build/SRPM -G RPM --config build/CPackSourceConfig.cmake - name: Upload SRPM - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'SRPM ${{ matrix.image.name }}' path: 'build/SRPM/*.src.rpm' retention-days: 5 - name: Stash packaging tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tests path: 'ci/tests/**' @@ -263,7 +263,7 @@ jobs: run: yum -y install rpm-build - name: Download SRPM - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: 'SRPM ${{ matrix.image.name }}' path: ~/rpmbuild/SRPMS @@ -283,7 +283,7 @@ jobs: run: cpack -G RPM -B ~/rpmbuild/SOURCES/RPMS --config ~/rpmbuild/SOURCES/BUILD/CPackConfig.cmake - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'RPM ${{ matrix.image.name}}' path: '~/rpmbuild/SOURCES/RPMS/*.rpm' @@ -336,18 +336,18 @@ jobs: run: sudo yum -y install findutils - name: Download rnp rpms - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: 'RPM ${{ matrix.image.name}}' - name: Checkout shell test framework - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: kward/shunit2 path: ci/tests/shunit2 - name: Unstash tests - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: tests path: ci/tests diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f4a5a24c62..cdc1c1e6e1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -52,13 +52,13 @@ jobs: export PATH=$(pwd)/cmake314/bin:${PATH} && echo "PATH=$PATH" >> $GITHUB_ENV - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} queries: +security-and-quality - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 if: ${{ matrix.language == 'python' }} - name: Build cpp @@ -70,6 +70,6 @@ jobs: make -j2 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 3e16728206..895d3bd742 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 20 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 9a1273a1ee..fd8fac0488 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -65,13 +65,13 @@ jobs: steps: - name: Checkout on x86_x64 if: matrix.image.cpu == 'x86_64' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - name: Checkout on i386 if: matrix.image.cpu == 'i386' - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: submodules: true diff --git a/.github/workflows/fuzzing.yml b/.github/workflows/fuzzing.yml index c51260a4c3..4981554154 100644 --- a/.github/workflows/fuzzing.yml +++ b/.github/workflows/fuzzing.yml @@ -34,7 +34,7 @@ jobs: fuzz-seconds: 300 dry-run: false - name: Upload Crash - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() && steps.build.outcome == 'success' with: name: artifacts diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d6220eedce..7c8d4b8d28 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, 'skip ci')" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true @@ -31,7 +31,7 @@ jobs: shellcheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true @@ -45,12 +45,12 @@ jobs: if: "!contains(github.event.head_commit.message, 'skip ci')" timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 path: rnp - name: Download latest version.cmake - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: rnpgp/cmake-versioning fetch-depth: 1 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 10bb3a0e99..61d9e031f2 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -80,7 +80,7 @@ jobs: timeout-minutes: 250 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true @@ -112,7 +112,7 @@ jobs: - name: Botan2 cache id: cache - uses: actions/cache@v3 + uses: actions/cache@v4 if: matrix.backend == 'botan' with: path: Botan-${{ env.BOTAN_VERSION }} @@ -164,7 +164,7 @@ jobs: - name: Checkout shell test framework if: matrix.shared_libs == 'on' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: kward/shunit2 path: ci/tests/shunit2 diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index c5bbcfdbe3..dbe79f8135 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -35,7 +35,7 @@ jobs: if: "!contains(github.event.head_commit.message, 'skip ci')" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true diff --git a/.github/workflows/time-machine.yml b/.github/workflows/time-machine.yml index f10da69d99..d36c2f0708 100644 --- a/.github/workflows/time-machine.yml +++ b/.github/workflows/time-machine.yml @@ -84,7 +84,7 @@ jobs: env: ${{ matrix.env }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -117,7 +117,7 @@ jobs: run: tar -czvf build.tar.gz build - name: Upload build files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'build-${{ matrix.env.CC }}-${{ matrix.image.backend }}' path: 'build.tar.gz' @@ -152,7 +152,7 @@ jobs: run: dnf -y install libfaketime - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -171,7 +171,7 @@ jobs: printf "\nrnpuser\tsoft\tnproc\tunlimited\n" > /etc/security/limits.d/30-rnpuser.conf - name: Download build files - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: 'build-${{ matrix.env.CC }}-${{ matrix.image.backend }}' diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index a7931d1351..c9f7d9bc9a 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -90,7 +90,7 @@ jobs: timeout-minutes: 50 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true @@ -125,7 +125,7 @@ jobs: timeout-minutes: 30 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true @@ -166,7 +166,7 @@ jobs: timeout-minutes: 30 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true @@ -224,7 +224,7 @@ jobs: sudo apt-get -y install cmake libjson-c-dev libbotan-2-dev asciidoctor - name: Checkout sexpp - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: rnpgp/sexpp path: sexpp @@ -248,7 +248,7 @@ jobs: run: rm -rf sexpp - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 submodules: false @@ -278,7 +278,7 @@ jobs: timeout-minutes: 30 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true @@ -301,14 +301,14 @@ jobs: run: cpack -B build/source-deb -G DEB --config build/CPackSourceConfig.cmake - name: Upload source package - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'source-debian' path: 'build/source-deb/*.deb' retention-days: 5 - name: Stash packaging tests - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tests path: 'ci/tests/**' @@ -326,7 +326,7 @@ jobs: sudo apt-get -y install cmake libjson-c-dev libbotan-2-dev asciidoctor - name: Download source package - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: 'source-debian' path: source-debian @@ -351,7 +351,7 @@ jobs: run: cpack -G DEB -B debian --config rnp/build/CPackConfig.cmake - name: Upload binary package - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'debian' path: 'debian/*.deb' @@ -363,18 +363,18 @@ jobs: timeout-minutes: 30 steps: - name: Download enp deb file - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: 'debian' - name: Checkout shell test framework - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: kward/shunit2 path: ci/tests/shunit2 - name: Unstash tests - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: tests path: ci/tests diff --git a/.github/workflows/windows-msys2.yml b/.github/workflows/windows-msys2.yml index 017f0bb2fc..70fa272bbb 100644 --- a/.github/workflows/windows-msys2.yml +++ b/.github/workflows/windows-msys2.yml @@ -87,7 +87,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 submodules: true @@ -134,7 +134,7 @@ jobs: run: cmake --install build - name: Checkout shell test framework - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: kward/shunit2 path: ci/tests/shunit2 diff --git a/.github/workflows/windows-native.yml b/.github/workflows/windows-native.yml index 2471351bd0..6f10ec278a 100644 --- a/.github/workflows/windows-native.yml +++ b/.github/workflows/windows-native.yml @@ -97,7 +97,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true lfs: true @@ -109,7 +109,7 @@ jobs: mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} - name: vcpkg cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} key: vcpkg-${{ hashFiles('vcpkg.version') }}-${{ matrix.arch.triplet }}-${{ matrix.toolset }}-${{ matrix.backend }}