Skip to content

Commit

Permalink
Cache build dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ferki committed Apr 17, 2022
1 parent bc40efb commit 8977940
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build_and_test.yml
Expand Up @@ -22,9 +22,16 @@ jobs:
- name: Setup Perl
id: perl
uses: shogo82148/actions-setup-perl@v1
- name: Get build timestamp
run: echo BUILD_TIMESTAMP="$(date +%FT%T)" >> $GITHUB_ENV
- name: Cache build dependencies
uses: actions/cache@v3
with:
install-modules-with: cpm
install-modules: Dist::Zilla
path: local
key: cache-build-deps-${{ steps.perl.outputs.perl-hash }}-${{ env.BUILD_TIMESTAMP }}
restore-keys: cache-build-deps-${{ steps.perl.outputs.perl-hash }}-
- name: Install Dist::Zilla
run: cpm install Dist::Zilla
- name: Install author dependencies
run: dzil authordeps | cpm install --show-build-log-on-failure -
- name: Build dist
Expand Down

0 comments on commit 8977940

Please sign in to comment.