Skip to content

Commit

Permalink
CI: bump actions versions to use node.js 20, where applicable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Mar 19, 2024
1 parent 79ca379 commit 1705b93
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 48 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/centos-and-fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,19 @@ jobs:

env: ${{ matrix.env }}
steps:
- name: Checkout
# CentOS 7 doesn't support node.js:20. To be removed once it is EOLed at June, 2024.
- name: Checkout v3
if: matrix.image.container == 'centos-7-amd64'
uses: actions/checkout@v3
with:
submodules: true

- name: Checkout v4
if: matrix.image.container != 'centos-7-amd64'
uses: actions/checkout@v4
with:
submodules: true

- name: Setup environment
run: |
set -o errexit -o pipefail -o noclobber -o nounset
Expand Down Expand Up @@ -197,7 +205,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
Expand Down Expand Up @@ -227,28 +235,35 @@ jobs:
- name: Install rpm tools
run: yum -y install rpm-build

- name: Checkout
- name: Checkout v3
if: matrix.image.container == 'centos-7-amd64'
uses: actions/checkout@v3
with:
submodules: true

- name: Checkout v4
if: matrix.image.container != 'centos-7-amd64'
uses: actions/checkout@v4
with:
submodules: true

- name: Configure
run: cmake -B build -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF

- name: Package SRPM
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
name: 'tests-${{ matrix.image.container }}'
path: 'ci/tests/**'
retention-days: 1

Expand All @@ -273,7 +288,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
Expand All @@ -293,7 +308,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'
Expand Down Expand Up @@ -346,18 +361,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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -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
Expand All @@ -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 }}"
2 changes: 1 addition & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzzing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
timeout-minutes: 250

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/time-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
env: ${{ matrix.env }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
run: dnf -y install libfaketime

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -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 }}'

Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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/**'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down
Loading

0 comments on commit 1705b93

Please sign in to comment.