diff --git a/.github/workflows/linux_bin_build.yml b/.github/workflows/linux_bin_build.yml index d362169..491b64a 100644 --- a/.github/workflows/linux_bin_build.yml +++ b/.github/workflows/linux_bin_build.yml @@ -9,7 +9,12 @@ on: pull_request: env: - PERL_MOD_DIR: /home/runner/perl5/lib/perl5 + PERL5LIB: /home/runner/perl5/lib/perl5 + PERL_LOCAL_LIB_ROOT: /home/runner/perl5/ + PERL_MB_OPT: --install_base /home/runner/perl5/ + PERL_MM_OPT: INSTALL_BASE=/home/runner/perl5/ + AUTOMATED_TESTING: 1 + jobs: perl: @@ -32,6 +37,21 @@ jobs: - name: perl -V run: perl -V + - name: Prepare for CPAN cache + run: | + perl -V > perlversion.txt + echo '20220320a' >> perlversion.txt + dir perlversion.txt + + - name: Cache CPAN modules + uses: actions/cache@v4 + with: + path: /home/runner/perl5/ + key: ${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }} + restore-keys: | + ${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }} + + - name: Install Dependencies run: | sudo apt-get install -y zlib1g-dev