Skip to content

Commit b78afe2

Browse files
authored
Merge pull request #1026 from yamt/update-gh-actions
Update github actions to the latest versions
2 parents d01280e + 798073c commit b78afe2

File tree

3 files changed

+64
-55
lines changed

3 files changed

+64
-55
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
github.event.workflow_run.head_sha == github.sha}}
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
with:
2525
ref: ${{github.event.workflow_run.head_sha}}
2626
# need workflow access since we push branches
@@ -30,26 +30,29 @@ jobs:
3030
fetch-depth: 0
3131

3232
# try to get results from tests
33-
- uses: dawidd6/action-download-artifact@v2
33+
- uses: actions/download-artifact@v4
3434
continue-on-error: true
3535
with:
36-
workflow: ${{github.event.workflow_run.name}}
37-
run_id: ${{github.event.workflow_run.id}}
38-
name: sizes
36+
github-token: ${{secrets.GITHUB_TOKEN}}
37+
run-id: ${{github.event.workflow_run.id}}
38+
pattern: '{sizes,sizes-*}'
39+
merge-multiple: true
3940
path: sizes
40-
- uses: dawidd6/action-download-artifact@v2
41+
- uses: actions/download-artifact@v4
4142
continue-on-error: true
4243
with:
43-
workflow: ${{github.event.workflow_run.name}}
44-
run_id: ${{github.event.workflow_run.id}}
45-
name: cov
44+
github-token: ${{secrets.GITHUB_TOKEN}}
45+
run-id: ${{github.event.workflow_run.id}}
46+
pattern: '{cov,cov-*}'
47+
merge-multiple: true
4648
path: cov
47-
- uses: dawidd6/action-download-artifact@v2
49+
- uses: actions/download-artifact@v4
4850
continue-on-error: true
4951
with:
50-
workflow: ${{github.event.workflow_run.name}}
51-
run_id: ${{github.event.workflow_run.id}}
52-
name: bench
52+
github-token: ${{secrets.GITHUB_TOKEN}}
53+
run-id: ${{github.event.workflow_run.id}}
54+
pattern: '{bench,bench-*}'
55+
merge-multiple: true
5356
path: bench
5457

5558
- name: find-version

.github/workflows/status.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
status:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: dawidd6/action-download-artifact@v2
16+
- uses: actions/download-artifact@v4
1717
continue-on-error: true
1818
with:
19-
workflow: ${{github.event.workflow_run.name}}
20-
run_id: ${{github.event.workflow_run.id}}
21-
name: status
19+
github-token: ${{secrets.GITHUB_TOKEN}}
20+
run-id: ${{github.event.workflow_run.id}}
21+
pattern: '{status,status-*}'
22+
merge-multiple: true
2223
path: status
2324
- name: update-status
2425
continue-on-error: true
@@ -67,12 +68,13 @@ jobs:
6768

6869
steps:
6970
# generated comment?
70-
- uses: dawidd6/action-download-artifact@v2
71+
- uses: actions/download-artifact@v4
7172
continue-on-error: true
7273
with:
73-
workflow: ${{github.event.workflow_run.name}}
74-
run_id: ${{github.event.workflow_run.id}}
75-
name: comment
74+
github-token: ${{secrets.GITHUB_TOKEN}}
75+
run-id: ${{github.event.workflow_run.id}}
76+
pattern: '{comment,comment-*}'
77+
merge-multiple: true
7678
path: comment
7779
- name: update-comment
7880
continue-on-error: true

.github/workflows/test.yml

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
arch: [x86_64, thumb, mips, powerpc]
2222

2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525
- name: install
2626
run: |
2727
# need a few things
@@ -235,9 +235,9 @@ jobs:
235235
236236
# create size statuses
237237
- name: upload-sizes
238-
uses: actions/upload-artifact@v2
238+
uses: actions/upload-artifact@v4
239239
with:
240-
name: sizes
240+
name: sizes-${{matrix.arch}}
241241
path: sizes
242242
- name: status-sizes
243243
run: |
@@ -273,16 +273,17 @@ jobs:
273273
}' | tee status/$(basename $f .csv).json
274274
done
275275
- name: upload-status-sizes
276-
uses: actions/upload-artifact@v2
276+
if: ${{matrix.arch == 'x86_64'}}
277+
uses: actions/upload-artifact@v4
277278
with:
278-
name: status
279+
name: status-sizes-${{matrix.arch}}
279280
path: status
280281
retention-days: 1
281282

282283
# create cov statuses
283284
- name: upload-cov
284285
if: ${{matrix.arch == 'x86_64'}}
285-
uses: actions/upload-artifact@v2
286+
uses: actions/upload-artifact@v4
286287
with:
287288
name: cov
288289
path: cov
@@ -317,11 +318,11 @@ jobs:
317318
target_step: env.STEP,
318319
}' | tee status/$(basename $f .csv)-$s.json
319320
done
320-
- name: upload-status-sizes
321+
- name: upload-status-cov
321322
if: ${{matrix.arch == 'x86_64'}}
322-
uses: actions/upload-artifact@v2
323+
uses: actions/upload-artifact@v4
323324
with:
324-
name: status
325+
name: status-cov
325326
path: status
326327
retention-days: 1
327328

@@ -336,7 +337,7 @@ jobs:
336337
pls: [1, 2]
337338

338339
steps:
339-
- uses: actions/checkout@v2
340+
- uses: actions/checkout@v4
340341
- name: install
341342
run: |
342343
# need a few things
@@ -361,7 +362,7 @@ jobs:
361362
test-no-intrinsics:
362363
runs-on: ubuntu-latest
363364
steps:
364-
- uses: actions/checkout@v2
365+
- uses: actions/checkout@v4
365366
- name: install
366367
run: |
367368
# need a few things
@@ -378,7 +379,7 @@ jobs:
378379
test-multiversion:
379380
runs-on: ubuntu-latest
380381
steps:
381-
- uses: actions/checkout@v2
382+
- uses: actions/checkout@v4
382383
- name: install
383384
run: |
384385
# need a few things
@@ -395,7 +396,7 @@ jobs:
395396
test-lfs2_0:
396397
runs-on: ubuntu-latest
397398
steps:
398-
- uses: actions/checkout@v2
399+
- uses: actions/checkout@v4
399400
- name: install
400401
run: |
401402
# need a few things
@@ -414,7 +415,7 @@ jobs:
414415
test-valgrind:
415416
runs-on: ubuntu-latest
416417
steps:
417-
- uses: actions/checkout@v2
418+
- uses: actions/checkout@v4
418419
- name: install
419420
run: |
420421
# need a few things
@@ -436,7 +437,7 @@ jobs:
436437
test-clang:
437438
runs-on: ubuntu-latest
438439
steps:
439-
- uses: actions/checkout@v2
440+
- uses: actions/checkout@v4
440441
- name: install
441442
run: |
442443
# need a few things
@@ -459,7 +460,7 @@ jobs:
459460
bench:
460461
runs-on: ubuntu-latest
461462
steps:
462-
- uses: actions/checkout@v2
463+
- uses: actions/checkout@v4
463464
- name: install
464465
run: |
465466
# need a few things
@@ -491,7 +492,7 @@ jobs:
491492
492493
# create bench statuses
493494
- name: upload-bench
494-
uses: actions/upload-artifact@v2
495+
uses: actions/upload-artifact@v4
495496
with:
496497
name: bench
497498
path: bench
@@ -525,20 +526,20 @@ jobs:
525526
}' | tee status/$(basename $f .csv)-$s.json
526527
done
527528
- name: upload-status-bench
528-
uses: actions/upload-artifact@v2
529+
uses: actions/upload-artifact@v4
529530
with:
530-
name: status
531+
name: status-bench
531532
path: status
532533
retention-days: 1
533534

534535
# run compatibility tests using the current master as the previous version
535536
test-compat:
536537
runs-on: ubuntu-latest
537538
steps:
538-
- uses: actions/checkout@v2
539+
- uses: actions/checkout@v4
539540
if: ${{github.event_name == 'pull_request'}}
540541
# checkout the current pr target into lfsp
541-
- uses: actions/checkout@v2
542+
- uses: actions/checkout@v4
542543
if: ${{github.event_name == 'pull_request'}}
543544
with:
544545
ref: ${{github.event.pull_request.base.ref}}
@@ -572,7 +573,7 @@ jobs:
572573
runs-on: ubuntu-latest
573574
if: ${{!endsWith(github.ref, '-prefix')}}
574575
steps:
575-
- uses: actions/checkout@v2
576+
- uses: actions/checkout@v4
576577
- name: install
577578
run: |
578579
# need a few things
@@ -582,7 +583,7 @@ jobs:
582583
gcc --version
583584
python3 --version
584585
fusermount -V
585-
- uses: actions/checkout@v2
586+
- uses: actions/checkout@v4
586587
with:
587588
repository: littlefs-project/littlefs-fuse
588589
ref: v2
@@ -622,7 +623,7 @@ jobs:
622623
runs-on: ubuntu-latest
623624
if: ${{!endsWith(github.ref, '-prefix')}}
624625
steps:
625-
- uses: actions/checkout@v2
626+
- uses: actions/checkout@v4
626627
- name: install
627628
run: |
628629
# need a few things
@@ -632,12 +633,12 @@ jobs:
632633
gcc --version
633634
python3 --version
634635
fusermount -V
635-
- uses: actions/checkout@v2
636+
- uses: actions/checkout@v4
636637
with:
637638
repository: littlefs-project/littlefs-fuse
638639
ref: v2
639640
path: v2
640-
- uses: actions/checkout@v2
641+
- uses: actions/checkout@v4
641642
with:
642643
repository: littlefs-project/littlefs-fuse
643644
ref: v1
@@ -694,7 +695,7 @@ jobs:
694695
runs-on: ubuntu-latest
695696
needs: [test, bench]
696697
steps:
697-
- uses: actions/checkout@v2
698+
- uses: actions/checkout@v4
698699
if: ${{github.event_name == 'pull_request'}}
699700
- name: install
700701
if: ${{github.event_name == 'pull_request'}}
@@ -704,23 +705,26 @@ jobs:
704705
pip3 install toml
705706
gcc --version
706707
python3 --version
707-
- uses: actions/download-artifact@v2
708+
- uses: actions/download-artifact@v4
708709
if: ${{github.event_name == 'pull_request'}}
709710
continue-on-error: true
710711
with:
711-
name: sizes
712+
pattern: '{sizes,sizes-*}'
713+
merge-multiple: true
712714
path: sizes
713-
- uses: actions/download-artifact@v2
715+
- uses: actions/download-artifact@v4
714716
if: ${{github.event_name == 'pull_request'}}
715717
continue-on-error: true
716718
with:
717-
name: cov
719+
pattern: '{cov,cov-*}'
720+
merge-multiple: true
718721
path: cov
719-
- uses: actions/download-artifact@v2
722+
- uses: actions/download-artifact@v4
720723
if: ${{github.event_name == 'pull_request'}}
721724
continue-on-error: true
722725
with:
723-
name: bench
726+
pattern: '{bench,bench-*}'
727+
merge-multiple: true
724728
path: bench
725729

726730
# try to find results from tests
@@ -862,7 +866,7 @@ jobs:
862866
body: $comment,
863867
}' | tee comment/comment.json
864868
- name: upload-comment
865-
uses: actions/upload-artifact@v2
869+
uses: actions/upload-artifact@v4
866870
with:
867871
name: comment
868872
path: comment

0 commit comments

Comments
 (0)