44
44
macosx-notarization : ${{ steps.set-version.outputs.macosx-notarization }}
45
45
46
46
steps :
47
- - uses : actions/checkout@v3
47
+ - uses : actions/checkout@v4
48
48
- name : Set version
49
49
id : set-version
50
50
run : |
@@ -186,14 +186,14 @@ jobs:
186
186
needs : setup-release
187
187
188
188
steps :
189
- - uses : actions/checkout@v3
189
+ - uses : actions/checkout@v4
190
190
- name : Create folders for cached datas
191
191
run : |
192
192
mkdir C:\Strawberry-perl-for-GLPI-Agent_build\restore
193
193
mkdir C:\Strawberry-perl-for-GLPI-Agent_build\tools
194
194
shell : cmd
195
195
- name : Restore points cache
196
- uses : actions/cache@v3
196
+ uses : actions/cache@v4
197
197
with :
198
198
path : |
199
199
C:/Strawberry-perl-for-GLPI-Agent_build/tools
@@ -203,7 +203,6 @@ jobs:
203
203
if : success() || failure()
204
204
run : |
205
205
dir C:\Strawberry-perl-for-GLPI-Agent_build\restore
206
- dir C:\Strawberry-perl-for-GLPI-Agent_build\tools
207
206
shell : cmd
208
207
- name : Update environment
209
208
run : |
@@ -227,11 +226,11 @@ jobs:
227
226
run : |
228
227
cpanm --notest --verbose Perl::Dist::Strawberry
229
228
shell : cmd
230
- - name : Fix Perl::Dist::Strawberry for perl 5.34
229
+ - name : Fix Perl::Dist::Strawberry for perl
231
230
run : |
232
231
perl -i -pe "s/makefile.mk/Makefile/" C:\Strawberry\perl\site\lib\Perl\Dist\Strawberry\Step\InstallPerlCore.pm
233
232
shell : cmd
234
- - name : Fix Perl::Dist::Strawberry to support patching perl 5.34
233
+ - name : Fix Perl::Dist::Strawberry to support patching perl
235
234
run : |
236
235
perl -i -pe "s/use Text::Diff;/use Text::Diff;use Text::Patch;/" C:\Strawberry\perl\site\lib\Perl\Dist\Strawberry\Step.pm
237
236
shell : cmd
@@ -274,15 +273,15 @@ jobs:
274
273
shell : cmd
275
274
- name : Upload windows built artifacts
276
275
if : success() || failure()
277
- uses : actions/upload-artifact@v3
276
+ uses : actions/upload-artifact@v4
278
277
with :
279
- name : Windows-Build
278
+ name : Windows-Build-${{ matrix.arch }}
280
279
path : C:\Strawberry-perl-for-GLPI-Agent_build\output
281
280
- name : Upload debug MSI-Build artifacts
282
281
if : failure() # success() || failure() # Only enable on failure or when debugging is required
283
- uses : actions/upload-artifact@v3
282
+ uses : actions/upload-artifact@v4
284
283
with :
285
- name : MSI-Build-Debug
284
+ name : MSI-Build-Debug-${{ matrix.arch }}
286
285
path : C:\Strawberry-perl-for-GLPI-Agent_build\build\msi
287
286
- name : VirusTotal Scan
288
287
uses : crazy-max/ghaction-virustotal@v3
@@ -301,9 +300,9 @@ jobs:
301
300
VT_API_KEY : ${{ secrets.VT_API_KEY }}
302
301
- name : Upload VirusTotal Report
303
302
if : ${{ vars.VT_SKIP_REPORT_ANALYSIS != 'yes' && ( needs.setup-release.outputs.create-release == 'yes' || startsWith(needs.setup-release.outputs.tag_name, 'nightly') ) }}
304
- uses : actions/upload-artifact@v3
303
+ uses : actions/upload-artifact@v4
305
304
with :
306
- name : VirusTotal-Report
305
+ name : VirusTotal-Report-${{ matrix.arch }}
307
306
path : C:\Strawberry-perl-for-GLPI-Agent_build\output\*.json
308
307
- name : Upload Portable Archive Asset
309
308
id : upload-portable-archive-asset
@@ -343,9 +342,9 @@ jobs:
343
342
needs : setup-release
344
343
345
344
steps :
346
- - uses : actions/checkout@v3
345
+ - uses : actions/checkout@v4
347
346
- name : Restore points cache
348
- uses : actions/cache@v3
347
+ uses : actions/cache@v4
349
348
with :
350
349
path : |
351
350
contrib/macosx/*.gz
@@ -409,15 +408,15 @@ jobs:
409
408
shell : bash
410
409
- name : Upload MacOSX built artifacts
411
410
if : success() || failure()
412
- uses : actions/upload-artifact@v3
411
+ uses : actions/upload-artifact@v4
413
412
with :
414
- name : MacOSX-Build
413
+ name : MacOSX-Build-${{ matrix.arch }}
415
414
path : |
416
415
contrib/macosx/build/*.pkg
417
416
contrib/macosx/build/*.dmg
418
417
- name : Upload MacOSX Perl building debug artifacts
419
418
if : success() || failure()
420
- uses : actions/upload-artifact@v3
419
+ uses : actions/upload-artifact@v4
421
420
with :
422
421
name : MacOSX-Perl-Config-${{ matrix.arch }}
423
422
path : |
@@ -459,13 +458,13 @@ jobs:
459
458
needs : setup-release
460
459
461
460
steps :
462
- - uses : actions/checkout@v3
461
+ - uses : actions/checkout@v4
463
462
- uses : snapcore/action-build@v1
464
463
id : snapcraft
465
464
env :
466
465
TERM : ${{ env.TERM }}:${{ needs.setup-release.outputs.version }}
467
466
- name : Upload Snap built artifacts
468
- uses : actions/upload-artifact@v3
467
+ uses : actions/upload-artifact@v4
469
468
with :
470
469
name : Snap-Build
471
470
path : ${{ steps.snapcraft.outputs.snap }}
@@ -489,7 +488,7 @@ jobs:
489
488
needs : setup-release
490
489
491
490
steps :
492
- - uses : actions/checkout@v3
491
+ - uses : actions/checkout@v4
493
492
- name : Install build dependencies packages
494
493
run : |
495
494
sudo apt update
@@ -526,7 +525,7 @@ jobs:
526
525
lintian --profile debian --show-overrides -L ">=pedantic"
527
526
shell : bash
528
527
- name : Upload built deb artifacts
529
- uses : actions/upload-artifact@v3
528
+ uses : actions/upload-artifact@v4
530
529
with :
531
530
name : Debian-Build
532
531
path : |
@@ -550,7 +549,7 @@ jobs:
550
549
needs : setup-release
551
550
552
551
steps :
553
- - uses : actions/checkout@v3
552
+ - uses : actions/checkout@v4
554
553
- name : Install build dependencies packages
555
554
run : |
556
555
sudo apt update
@@ -576,13 +575,13 @@ jobs:
576
575
glpi-agent-task-esx glpi-agent-cron
577
576
shell : bash
578
577
- name : Upload built rpm artifacts
579
- uses : actions/upload-artifact@v3
578
+ uses : actions/upload-artifact@v4
580
579
with :
581
580
name : RPM-Build
582
581
path : |
583
582
${{ steps.rpmbuild.outputs.rpmdir }}/noarch/*.rpm
584
583
- name : Upload rpm sources artifacts
585
- uses : actions/upload-artifact@v3
584
+ uses : actions/upload-artifact@v4
586
585
with :
587
586
name : RPM-Sources
588
587
path : |
@@ -606,14 +605,14 @@ jobs:
606
605
needs : [ setup-release, linux-snap-packaging, linux-debian-packaging, linux-rpm-packaging ]
607
606
608
607
steps :
609
- - uses : actions/checkout@v3
610
- - uses : actions/download-artifact@v3
608
+ - uses : actions/checkout@v4
609
+ - uses : actions/download-artifact@v4
611
610
with :
612
611
name : RPM-Build
613
- - uses : actions/download-artifact@v3
612
+ - uses : actions/download-artifact@v4
614
613
with :
615
614
name : Debian-Build
616
- - uses : actions/download-artifact@v3
615
+ - uses : actions/download-artifact@v4
617
616
with :
618
617
name : Snap-Build
619
618
- name : Build installer
@@ -633,7 +632,7 @@ jobs:
633
632
env :
634
633
VERSION : ${{ needs.setup-release.outputs.version }}
635
634
- name : Upload built installer artifacts
636
- uses : actions/upload-artifact@v3
635
+ uses : actions/upload-artifact@v4
637
636
with :
638
637
name : Linux-Installer-Build
639
638
path : |
@@ -655,14 +654,14 @@ jobs:
655
654
needs : [ setup-release, linux-debian-packaging ]
656
655
657
656
steps :
658
- - uses : actions/checkout@v3
657
+ - uses : actions/checkout@v4
659
658
# We use AppImage Builder development version as 1.1 is failing
660
659
- name : Install AppImage Builder development version
661
660
id : install-appimage-builder
662
661
run : |
663
662
pip3 install git+https://github.com/AppImageCrafters/appimage-builder.git
664
663
shell : bash
665
- - uses : actions/download-artifact@v3
664
+ - uses : actions/download-artifact@v4
666
665
with :
667
666
name : Debian-Build
668
667
- name : Make AppImage
@@ -691,7 +690,7 @@ jobs:
691
690
env :
692
691
VERSION : ${{ needs.setup-release.outputs.version }}
693
692
- name : Upload built installer artifacts
694
- uses : actions/upload-artifact@v3
693
+ uses : actions/upload-artifact@v4
695
694
with :
696
695
name : Linux-AppImage-Build
697
696
path : |
@@ -719,7 +718,7 @@ jobs:
719
718
needs : setup-release
720
719
721
720
steps :
722
- - uses : actions/checkout@v3
721
+ - uses : actions/checkout@v4
723
722
- name : Install build dependencies packages
724
723
run : |
725
724
sudo apt update
@@ -741,7 +740,7 @@ jobs:
741
740
env :
742
741
VERSION : ${{ needs.setup-release.outputs.version }}
743
742
- name : Upload built archive artifacts
744
- uses : actions/upload-artifact@v3
743
+ uses : actions/upload-artifact@v4
745
744
with :
746
745
name : Sources
747
746
path : |
@@ -763,7 +762,44 @@ jobs:
763
762
needs : [ setup-release, windows-packaging, macosx-packaging, linux-snap-packaging, linux-debian-packaging, linux-rpm-packaging, linux-installer, sources ]
764
763
765
764
steps :
766
- - uses : actions/checkout@v3
765
+ - uses : actions/checkout@v4
766
+ - uses : actions/download-artifact@v4
767
+ with :
768
+ name : Linux-Installer-Build
769
+ - uses : actions/download-artifact@v4
770
+ with :
771
+ name : RPM-Build
772
+ - uses : actions/download-artifact@v4
773
+ with :
774
+ name : Debian-Build
775
+ - uses : actions/download-artifact@v4
776
+ with :
777
+ name : Snap-Build
778
+ - uses : actions/download-artifact@v4
779
+ with :
780
+ name : Linux-AppImage-Build
781
+ - uses : actions/download-artifact@v4
782
+ with :
783
+ pattern : MacOSX-Build-*
784
+ merge-multiple : true
785
+ - uses : actions/download-artifact@v4
786
+ with :
787
+ pattern : Windows-Build-*
788
+ merge-multiple : true
789
+ - uses : actions/download-artifact@v4
790
+ with :
791
+ name : Sources
792
+ - name : Generate and upload sha256 file
793
+ id : upload-sha256-asset
794
+ run : |
795
+ # Clean up not published files from Debian-Build
796
+ rm -f *.buildinfo *.changes
797
+ sha256sum *$VERSION* > glpi-agent-$VERSION.sha256
798
+ gh release upload ${{ needs.setup-release.outputs.tag_name }} glpi-agent-$VERSION.sha256
799
+ shell : bash
800
+ env :
801
+ VERSION : ${{ needs.setup-release.outputs.version }}
802
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
767
803
- name : Publish release
768
804
id : publish-release
769
805
run : |
@@ -817,40 +853,42 @@ jobs:
817
853
needs : [ setup-release, windows-packaging, macosx-packaging, linux-snap-packaging, linux-debian-packaging, linux-rpm-packaging, linux-installer, sources ]
818
854
819
855
steps :
820
- - uses : actions/checkout@v3
856
+ - uses : actions/checkout@v4
821
857
with :
822
858
repository : ${{ github.repository_owner }}/glpi-project.github.io
823
859
token : ${{ secrets.PUBLISHING_TOKEN }}
824
860
fetch-depth : 0
825
- - uses : actions/download-artifact@v3
861
+ - uses : actions/download-artifact@v4
826
862
with :
827
863
name : Linux-Installer-Build
828
864
path : glpi-agent
829
- - uses : actions/download-artifact@v3
865
+ - uses : actions/download-artifact@v4
830
866
with :
831
867
name : RPM-Build
832
868
path : glpi-agent
833
- - uses : actions/download-artifact@v3
869
+ - uses : actions/download-artifact@v4
834
870
with :
835
871
name : Debian-Build
836
872
path : glpi-agent
837
- - uses : actions/download-artifact@v3
873
+ - uses : actions/download-artifact@v4
838
874
with :
839
875
name : Snap-Build
840
876
path : glpi-agent
841
- - uses : actions/download-artifact@v3
877
+ - uses : actions/download-artifact@v4
842
878
with :
843
879
name : Linux-AppImage-Build
844
880
path : glpi-agent
845
- - uses : actions/download-artifact@v3
881
+ - uses : actions/download-artifact@v4
846
882
with :
847
- name : MacOSX-Build
883
+ pattern : MacOSX-Build-*
848
884
path : glpi-agent
849
- - uses : actions/download-artifact@v3
885
+ merge-multiple : true
886
+ - uses : actions/download-artifact@v4
850
887
with :
851
- name : Windows-Build
888
+ pattern : Windows-Build-*
852
889
path : glpi-agent
853
- - uses : actions/download-artifact@v3
890
+ merge-multiple : true
891
+ - uses : actions/download-artifact@v4
854
892
with :
855
893
name : Sources
856
894
path : glpi-agent
0 commit comments