Skip to content

Commit 83e6e32

Browse files
authored
fix: correct cache keys for no-std test coverage in CI (#2093)
* Update rust.yml * Update rust.yml
1 parent b11ad82 commit 83e6e32

File tree

1 file changed

+84
-12
lines changed

1 file changed

+84
-12
lines changed

.github/workflows/rust.yml

Lines changed: 84 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,29 @@ jobs:
566566
path: lcov-test#4-.info
567567
key: codecov-cache-test#4--${{ github.sha }}
568568
fail-on-cache-miss: true
569-
- name: Fetch results for tests without stdlib
569+
- name: Fetch results for tests without stdlib (part. 1)
570570
uses: actions/cache/restore@v3
571571
with:
572-
path: lcov-test-no_std-.info
573-
key: codecov-cache-test-no_std--${{ github.sha }}
572+
path: lcov-test-no_std#1-.info
573+
key: codecov-cache-test-no_std#1--${{ github.sha }}
574+
fail-on-cache-miss: true
575+
- name: Fetch results for tests without stdlib (part. 2)
576+
uses: actions/cache/restore@v3
577+
with:
578+
path: lcov-test-no_std#2-.info
579+
key: codecov-cache-test-no_std#2--${{ github.sha }}
580+
fail-on-cache-miss: true
581+
- name: Fetch results for tests without stdlib (part. 3)
582+
uses: actions/cache/restore@v3
583+
with:
584+
path: lcov-test-no_std#3-.info
585+
key: codecov-cache-test-no_std#3--${{ github.sha }}
586+
fail-on-cache-miss: true
587+
- name: Fetch results for tests without stdlib (part. 4)
588+
uses: actions/cache/restore@v3
589+
with:
590+
path: lcov-test-no_std#4-.info
591+
key: codecov-cache-test-no_std#4--${{ github.sha }}
574592
fail-on-cache-miss: true
575593
- name: Fetch results for tests with stdlib (w/extensive_hints; part. 1)
576594
uses: actions/cache/restore@v3
@@ -596,11 +614,29 @@ jobs:
596614
path: lcov-test#4-extensive_hints.info
597615
key: codecov-cache-test#4-extensive_hints-${{ github.sha }}
598616
fail-on-cache-miss: true
599-
- name: Fetch results for tests without stdlib (w/extensive_hints)
617+
- name: Fetch results for tests without stdlib (w/extensive_hints; part. 1)
618+
uses: actions/cache/restore@v3
619+
with:
620+
path: lcov-test-no_std#1-extensive_hints.info
621+
key: codecov-cache-test-no_std#1-extensive_hints-${{ github.sha }}
622+
fail-on-cache-miss: true
623+
- name: Fetch results for tests without stdlib (w/extensive_hints; part. 2)
624+
uses: actions/cache/restore@v3
625+
with:
626+
path: lcov-test-no_std#2-extensive_hints.info
627+
key: codecov-cache-test-no_std#2-extensive_hints-${{ github.sha }}
628+
fail-on-cache-miss: true
629+
- name: Fetch results for tests without stdlib (w/extensive_hints; part. 3)
630+
uses: actions/cache/restore@v3
631+
with:
632+
path: lcov-test-no_std#3-extensive_hints.info
633+
key: codecov-cache-test-no_std#3-extensive_hints-${{ github.sha }}
634+
fail-on-cache-miss: true
635+
- name: Fetch results for tests without stdlib (w/extensive_hints; part. 4)
600636
uses: actions/cache/restore@v3
601637
with:
602-
path: lcov-no_std-extensive_hints.info
603-
key: codecov-cache-test-no_std-extensive_hints-${{ github.sha }}
638+
path: lcov-test-no_std#4-extensive_hints.info
639+
key: codecov-cache-test-no_std#4-extensive_hints-${{ github.sha }}
604640
fail-on-cache-miss: true
605641

606642
- name: Fetch results for tests with stdlib (w/mod_builtin; part. 1)
@@ -627,11 +663,29 @@ jobs:
627663
path: lcov-test#4-mod_builtin.info
628664
key: codecov-cache-test#4-mod_builtin-${{ github.sha }}
629665
fail-on-cache-miss: true
630-
- name: Fetch results for tests without stdlib (w/mod_builtin)
666+
- name: Fetch results for tests without stdlib (w/mod_builtin; part. 1)
631667
uses: actions/cache/restore@v3
632668
with:
633-
path: lcov-no_std-mod_builtin.info
634-
key: codecov-cache-test-no_std-mod_builtin-${{ github.sha }}
669+
path: lcov-test-no_std#1-mod_builtin.info
670+
key: codecov-cache-test-no_std#1-mod_builtin-${{ github.sha }}
671+
fail-on-cache-miss: true
672+
- name: Fetch results for tests without stdlib (w/mod_builtin; part. 2)
673+
uses: actions/cache/restore@v3
674+
with:
675+
path: lcov-test-no_std#2-mod_builtin.info
676+
key: codecov-cache-test-no_std#2-mod_builtin-${{ github.sha }}
677+
fail-on-cache-miss: true
678+
- name: Fetch results for tests without stdlib (w/mod_builtin; part. 3)
679+
uses: actions/cache/restore@v3
680+
with:
681+
path: lcov-test-no_std#3-mod_builtin.info
682+
key: codecov-cache-test-no_std#3-mod_builtin-${{ github.sha }}
683+
fail-on-cache-miss: true
684+
- name: Fetch results for tests without stdlib (w/mod_builtin; part. 4)
685+
uses: actions/cache/restore@v3
686+
with:
687+
path: lcov-test-no_std#4-mod_builtin.info
688+
key: codecov-cache-test-no_std#4-mod_builtin-${{ github.sha }}
635689
fail-on-cache-miss: true
636690

637691
- name: Fetch results for tests with stdlib (w/cairo-0-secp-hints; part. 1)
@@ -658,11 +712,29 @@ jobs:
658712
path: lcov-test#4-cairo-0-secp-hints.info
659713
key: codecov-cache-test#4-cairo-0-secp-hints-${{ github.sha }}
660714
fail-on-cache-miss: true
661-
- name: Fetch results for tests without stdlib (w/cairo-0-secp-hints)
715+
- name: Fetch results for tests without stdlib (w/cairo-0-secp-hints; part. 1)
716+
uses: actions/cache/restore@v3
717+
with:
718+
path: lcov-test-no_std#1-cairo-0-secp-hints.info
719+
key: codecov-cache-test-no_std#1-cairo-0-secp-hints-${{ github.sha }}
720+
fail-on-cache-miss: true
721+
- name: Fetch results for tests without stdlib (w/cairo-0-secp-hints; part. 2)
722+
uses: actions/cache/restore@v3
723+
with:
724+
path: lcov-test-no_std#2-cairo-0-secp-hints.info
725+
key: codecov-cache-test-no_std#2-cairo-0-secp-hints-${{ github.sha }}
726+
fail-on-cache-miss: true
727+
- name: Fetch results for tests without stdlib (w/cairo-0-secp-hints; part. 3)
728+
uses: actions/cache/restore@v3
729+
with:
730+
path: lcov-test-no_std#3-cairo-0-secp-hints.info
731+
key: codecov-cache-test-no_std#3-cairo-0-secp-hints-${{ github.sha }}
732+
fail-on-cache-miss: true
733+
- name: Fetch results for tests without stdlib (w/cairo-0-secp-hints; part. 4)
662734
uses: actions/cache/restore@v3
663735
with:
664-
path: lcov-no_std-cairo-0-secp-hints.info
665-
key: codecov-cache-test-no_std-cairo-0-secp-hints-${{ github.sha }}
736+
path: lcov-test-no_std#4-cairo-0-secp-hints.info
737+
key: codecov-cache-test-no_std#4-cairo-0-secp-hints-${{ github.sha }}
666738
fail-on-cache-miss: true
667739

668740
- name: Upload coverage to codecov.io

0 commit comments

Comments
 (0)