Skip to content

Commit

Permalink
build: Also add required perl libraries cache support for windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Mar 6, 2024
1 parent 4094c36 commit a7c724e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/glpi-agent-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@ jobs:
dir C:\Strawberry-perl-for-GLPI-Agent_build\download
dir C:\Strawberry-perl-for-GLPI-Agent_build\restore
shell: cmd
- name: Restore required perl libraries cache
uses: actions/cache@v4
id: perl-site-cache
if: steps.built-perl-cache.outputs.cache-hit == 'true'
with:
path: |
C:\Strawberry\perl\site\lib
C:\Strawberry\perl\site\bin
key: built-perl-windows-packaging-perl-site-cache-${{ matrix.arch }}-${{ hashFiles('contrib\windows\glpi-agent-extlibs-build.pl', 'contrib\windows\glpi-agent-packaging.pl', 'contrib\windows\packaging\*') }}
- name: Update environment
run: |
echo 'C:\Strawberry\perl\bin' >> $GITHUB_PATH
Expand All @@ -227,12 +236,14 @@ jobs:
perl -V
shell: cmd
- name: Install Module::Install
if: steps.perl-site-cache.outputs.cache-hit != 'true'
run: cpan -T Module::Install
shell: cmd
- name: Prepare Makefile
run: perl Makefile.PL
shell: cmd
- name: Install latest Perl::Dist::Strawberry from github
if: steps.perl-site-cache.outputs.cache-hit != 'true'
run: |
cpanm --notest --verbose https://github.com/StrawberryPerl/Perl-Dist-Strawberry.git
shell: cmd
Expand Down

0 comments on commit a7c724e

Please sign in to comment.