From 13c31fbfaa9f96b41edc5eb41297915ad591246e Mon Sep 17 00:00:00 2001 From: shawnlaffan Date: Wed, 12 Jun 2024 09:14:39 +1000 Subject: [PATCH] CI: add cache to linux_bin_build.yml --- .github/workflows/linux_bin_build.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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