Skip to content

Commit

Permalink
CI: add cache to linux_bin_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnlaffan committed Jun 11, 2024
1 parent 1c144d7 commit 13c31fb
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/linux_bin_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 13c31fb

Please sign in to comment.