From b4b0d50deeb8d2e3253bc3a1a4e3af416463e5eb Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Wed, 14 Feb 2024 14:45:33 +0100 Subject: [PATCH] fix(ci): do not rebuild perl official packages (#4911) --- .github/workflows/perl-cpan-libraries.yml | 57 ++++++----------------- 1 file changed, 15 insertions(+), 42 deletions(-) diff --git a/.github/workflows/perl-cpan-libraries.yml b/.github/workflows/perl-cpan-libraries.yml index 4b4eca6a5..3bff9a9ba 100644 --- a/.github/workflows/perl-cpan-libraries.yml +++ b/.github/workflows/perl-cpan-libraries.yml @@ -148,7 +148,8 @@ jobs: password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} run: | @@ -204,7 +205,8 @@ jobs: cp -r ~/rpmbuild/RPMS/noarch/*.rpm . shell: bash - - name: Replace '::' with - in the feature path + - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} + name: Replace '::' with - in the feature path id: package-name run: | name="${{ matrix.name }}" @@ -213,7 +215,8 @@ jobs: echo "name_with_dash=$name_with_dash" >> $GITHUB_OUTPUT shell: bash - - uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 + - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} + uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 with: name: packages-${{ matrix.package_extension }}-${{ matrix.distrib }}-${{ steps.package-name.outputs.name_with_dash }} path: ./*.${{ matrix.package_extension }} @@ -230,54 +233,21 @@ jobs: distrib: [bullseye, bookworm, jammy] name: [ - "Authen::SASL::SASLprep", "Authen::SCRAM::Client", - "boolean", - "Carp::Assert", - "Clone", - "Clone::Choose", "Convert::EBCDIC", "Crypt::Blowfish_PP", "DateTime::Format::Duration::ISO8601", "Device::Modbus", - "Digest::MD5::File", "Digest::SHA1", "Email::Send::SMTP::Gmail", - "FFI::CheckLib", - "File::SearchPath", - "Hash::Merge", "Hash::Ordered", - "HTTP::Daemon", - "HTTP::Daemon::SSL", "HTTP::ProxyPAC", "JMX::Jmx4Perl", - "JSON::WebToken", - "LV", - "MIME::Types", - "MongoDB", "Net::FTPSSL", "Net::HTTPTunnel", - "Net::NTP", - "Net::SMTPS", "Net::SMTP_auth", - "Net::Subnet", - "Net::TFTP", - "PBKDF2::Tiny", - "Schedule::Cron", - "Statistics::Descriptive", "Statistics::Regression", - "Sys::SigAction", - "Term::Clui", - "Term::ShellUI", - "Unicode::Stringprep", - "URI::Encode", - "URI::Template", - "URL::Encode", - "UUID::URandom", "WWW::Selenium", - "XML::Filter::BufferText", - "XML::LibXML::Simple", - "XML::SAX::Writer", "ZMQ::Constants", "ZMQ::LibZMQ4" ] @@ -297,10 +267,9 @@ jobs: - distrib: jammy package_extension: deb image: packaging-plugins-jammy - - name: "DateTime::Format::Duration::ISO8601" - name: "Statistics::Regression" + build_distribs: "bullseye" version: "0.53" - - name: "ZMQ::Constants" - name: "ZMQ::LibZMQ4" use_dh_make_perl: "false" version: "0.01" @@ -313,9 +282,11 @@ jobs: password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - name: Get package version + - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} + name: Get package version id: package-version run: | apt-get update @@ -365,7 +336,8 @@ jobs: DEB_BUILD_OPTIONS="nocheck nodocs notest" dh-make-perl make --dist ${{ matrix.distrib }} --build --version ${{ steps.package-version.outputs.package_version }}-${{ matrix.distrib }} --cpan ${{ matrix.name }} shell: bash - - name: Replace '::' with - in the feature path + - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} + name: Replace '::' with - in the feature path id: package-name run: | name="${{ matrix.name }}" @@ -374,7 +346,8 @@ jobs: echo "name_with_dash=$name_with_dash" >> $GITHUB_OUTPUT shell: bash - - uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 + - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} + uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 with: name: packages-${{ matrix.package_extension }}-${{ matrix.distrib }}-${{ steps.package-name.outputs.name_with_dash}} path: ./*.${{ matrix.package_extension }}