From 62f5134ef2e98e44dc991f474db816b833984db3 Mon Sep 17 00:00:00 2001 From: Sophie Depassio Date: Thu, 26 Dec 2024 14:51:33 +0100 Subject: [PATCH] Cleaning installation of tools/libs already in the docker image --- .../Dockerfile.packaging-plugins-bullseye | 3 +- .github/workflows/perl-cpan-libraries.yml | 37 ++++++------------- .github/workflows/test-cpan-libraries.yml | 9 ----- 3 files changed, 13 insertions(+), 36 deletions(-) diff --git a/.github/docker/packaging/Dockerfile.packaging-plugins-bullseye b/.github/docker/packaging/Dockerfile.packaging-plugins-bullseye index 39881c897f..388d9ac570 100644 --- a/.github/docker/packaging/Dockerfile.packaging-plugins-bullseye +++ b/.github/docker/packaging/Dockerfile.packaging-plugins-bullseye @@ -38,7 +38,6 @@ apt-get install -y \ libapp-fatpacker-perl \ libcurl4-openssl-dev \ libczmq-dev \ - libczmq-dev\ libfile-copy-recursive-perl \ libjson-perl \ libmodule-build-tiny-perl \ @@ -58,6 +57,8 @@ cpanm Crypt::OpenSSL::Guess gem install fpm +# Patch to apply fpm fix for debian package generation while waiting for the official fix to be released. +patch -i .github/patch/fpm-deb.rb.diff $(find / -type f -name "deb.rb") echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list apt-get update diff --git a/.github/workflows/perl-cpan-libraries.yml b/.github/workflows/perl-cpan-libraries.yml index 7b3e82beb3..abbcf320ed 100644 --- a/.github/workflows/perl-cpan-libraries.yml +++ b/.github/workflows/perl-cpan-libraries.yml @@ -6,17 +6,17 @@ concurrency: on: workflow_dispatch: - pull_request: - paths: - - ".github/workflows/perl-cpan-libraries.yml" - push: - branches: - - develop - - dev-[2-9][0-9].[0-9][0-9].x - - master - - "[2-9][0-9].[0-9][0-9].x" - paths: - - ".github/workflows/perl-cpan-libraries.yml" +# pull_request: +# paths: +# - ".github/workflows/perl-cpan-libraries.yml" +# push: +# branches: +# - develop +# - dev-[2-9][0-9].[0-9][0-9].x +# - master +# - "[2-9][0-9].[0-9][0-9].x" +# paths: +# - ".github/workflows/perl-cpan-libraries.yml" jobs: get-environment: @@ -411,9 +411,6 @@ jobs: name: Get package version id: package-version run: | - apt-get update - apt-get install -y cpanminus - if [ -z "${{ matrix.version }}" ]; then CPAN_PACKAGE_VERSION=$(cpanm --info ${{ matrix.name }} | sed 's/\.tar\.gz$//' | sed 's/.*\-//' | sed 's/v//') @@ -447,8 +444,6 @@ jobs: - if: ${{ contains(matrix.build_distribs, matrix.distrib) && matrix.use_dh_make_perl == 'false' }} run: | - apt-get install -y ruby libcurl4-openssl-dev libssh-dev uuid-dev libczmq-dev - if [ -z "${{ matrix.deb_dependencies }}" ]; then PACKAGE_DEPENDENCIES="" else @@ -461,21 +456,11 @@ jobs: PACKAGE_DEPENDENCIES="$PACKAGE_DEPENDENCIES --no-auto-depends" fi - cpanm Module::Build::Tiny - cpanm Module::Install - - gem install fpm - # Patch to apply fpm fix for debian package generation while waiting for the official fix to be released. - patch -i .github/patch/fpm-deb.rb.diff $(find / -type f -name "deb.rb") - fpm -a native -s cpan -t ${{ matrix.package_extension }} --deb-dist ${{ matrix.distrib }} --iteration ${{ steps.parse-distrib.outputs.package_distrib_name }} --verbose --cpan-verbose --no-cpan-test$PACKAGE_DEPENDENCIES -v ${{ steps.package-version.outputs.package_version }} ${{ matrix.name }} shell: bash - if: ${{ contains(matrix.build_distribs, matrix.distrib) && matrix.use_dh_make_perl == 'true' }} run: | - apt-get install -y libcurl4-openssl-dev dh-make-perl libssh-dev uuid-dev libczmq-dev libmodule-install-perl libmodule-build-tiny-perl - # module-build-tiny is required for Mojo::IOLoop::Signal build. - DEB_BUILD_OPTIONS="nocheck nodocs notest" dh-make-perl make --dist ${{ matrix.distrib }} --build --version ${{ steps.package-version.outputs.package_version }}${{ steps.parse-distrib.outputs.package_distrib_separator }}${{ steps.parse-distrib.outputs.package_distrib_name }} --cpan ${{ matrix.name }} shell: bash diff --git a/.github/workflows/test-cpan-libraries.yml b/.github/workflows/test-cpan-libraries.yml index b633bada26..7d33f9b7f0 100644 --- a/.github/workflows/test-cpan-libraries.yml +++ b/.github/workflows/test-cpan-libraries.yml @@ -389,9 +389,6 @@ jobs: name: Get package version id: package-version run: | - apt-get update - apt-get install -y cpanminus - if [ -z "${{ matrix.version }}" ]; then CPAN_PACKAGE_VERSION=$(cpanm --info ${{ matrix.name }} | sed 's/\.tar\.gz$//' | sed 's/.*\-//' | sed 's/v//') @@ -425,8 +422,6 @@ jobs: - if: ${{ contains(matrix.build_distribs, matrix.distrib) }} run: | - apt-get install -y ruby libcurl4-openssl-dev libssh-dev uuid-dev libczmq-dev - if [ -z "${{ matrix.deb_dependencies }}" ]; then PACKAGE_DEPENDENCIES="" else @@ -439,10 +434,6 @@ jobs: PACKAGE_DEPENDENCIES="$PACKAGE_DEPENDENCIES --no-auto-depends" fi - cpanm Module::Build::Tiny - cpanm Module::Install - - gem install fpm # Patch to apply fpm fix for debian package generation while waiting for the official fix to be released. patch -i .github/patch/fpm-deb.rb.diff $(find / -type f -name "deb.rb")