From 8b484f5afff8a1e49ab04101fe89637aba0d1fde Mon Sep 17 00:00:00 2001 From: crStiv Date: Mon, 12 May 2025 14:03:53 +0200 Subject: [PATCH 1/2] Update rust.yml --- .github/workflows/rust.yml | 98 +++++++++++++++++++++++++++++++++----- 1 file changed, 85 insertions(+), 13 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index dfbab11a6b..ea29ac2777 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -400,7 +400,7 @@ jobs: uses: actions/checkout@v4 - name: Build run: cargo b --release -p cairo-vm-cli - # We don't read from cache because it should always miss + # We don't read from cache because it should always miss - name: Store in cache uses: actions/cache/save@v3 with: @@ -566,11 +566,29 @@ jobs: path: lcov-test#4-.info key: codecov-cache-test#4--${{ github.sha }} fail-on-cache-miss: true - - name: Fetch results for tests without stdlib + - name: Fetch results for tests without stdlib (part. 1) uses: actions/cache/restore@v3 with: - path: lcov-test-no_std-.info - key: codecov-cache-test-no_std--${{ github.sha }} + path: lcov-test-no_std#1-.info + key: codecov-cache-test-no_std#1--${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (part. 2) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#2-.info + key: codecov-cache-test-no_std#2--${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (part. 3) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#3-.info + key: codecov-cache-test-no_std#3--${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (part. 4) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#4-.info + key: codecov-cache-test-no_std#4--${{ github.sha }} fail-on-cache-miss: true - name: Fetch results for tests with stdlib (w/extensive_hints; part. 1) uses: actions/cache/restore@v3 @@ -596,11 +614,29 @@ jobs: path: lcov-test#4-extensive_hints.info key: codecov-cache-test#4-extensive_hints-${{ github.sha }} fail-on-cache-miss: true - - name: Fetch results for tests without stdlib (w/extensive_hints) + - name: Fetch results for tests without stdlib (w/extensive_hints; part. 1) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#1-extensive_hints.info + key: codecov-cache-test-no_std#1-extensive_hints-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/extensive_hints; part. 2) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#2-extensive_hints.info + key: codecov-cache-test-no_std#2-extensive_hints-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/extensive_hints; part. 3) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#3-extensive_hints.info + key: codecov-cache-test-no_std#3-extensive_hints-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/extensive_hints; part. 4) uses: actions/cache/restore@v3 with: - path: lcov-no_std-extensive_hints.info - key: codecov-cache-test-no_std-extensive_hints-${{ github.sha }} + path: lcov-test-no_std#4-extensive_hints.info + key: codecov-cache-test-no_std#4-extensive_hints-${{ github.sha }} fail-on-cache-miss: true - name: Fetch results for tests with stdlib (w/mod_builtin; part. 1) @@ -627,11 +663,29 @@ jobs: path: lcov-test#4-mod_builtin.info key: codecov-cache-test#4-mod_builtin-${{ github.sha }} fail-on-cache-miss: true - - name: Fetch results for tests without stdlib (w/mod_builtin) + - name: Fetch results for tests without stdlib (w/mod_builtin; part. 1) uses: actions/cache/restore@v3 with: - path: lcov-no_std-mod_builtin.info - key: codecov-cache-test-no_std-mod_builtin-${{ github.sha }} + path: lcov-test-no_std#1-mod_builtin.info + key: codecov-cache-test-no_std#1-mod_builtin-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/mod_builtin; part. 2) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#2-mod_builtin.info + key: codecov-cache-test-no_std#2-mod_builtin-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/mod_builtin; part. 3) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#3-mod_builtin.info + key: codecov-cache-test-no_std#3-mod_builtin-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/mod_builtin; part. 4) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#4-mod_builtin.info + key: codecov-cache-test-no_std#4-mod_builtin-${{ github.sha }} fail-on-cache-miss: true - name: Fetch results for tests with stdlib (w/cairo-0-secp-hints; part. 1) @@ -658,11 +712,29 @@ jobs: path: lcov-test#4-cairo-0-secp-hints.info key: codecov-cache-test#4-cairo-0-secp-hints-${{ github.sha }} fail-on-cache-miss: true - - name: Fetch results for tests without stdlib (w/cairo-0-secp-hints) + - name: Fetch results for tests without stdlib (w/cairo-0-secp-hints; part. 1) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#1-cairo-0-secp-hints.info + key: codecov-cache-test-no_std#1-cairo-0-secp-hints-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/cairo-0-secp-hints; part. 2) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#2-cairo-0-secp-hints.info + key: codecov-cache-test-no_std#2-cairo-0-secp-hints-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/cairo-0-secp-hints; part. 3) + uses: actions/cache/restore@v3 + with: + path: lcov-test-no_std#3-cairo-0-secp-hints.info + key: codecov-cache-test-no_std#3-cairo-0-secp-hints-${{ github.sha }} + fail-on-cache-miss: true + - name: Fetch results for tests without stdlib (w/cairo-0-secp-hints; part. 4) uses: actions/cache/restore@v3 with: - path: lcov-no_std-cairo-0-secp-hints.info - key: codecov-cache-test-no_std-cairo-0-secp-hints-${{ github.sha }} + path: lcov-test-no_std#4-cairo-0-secp-hints.info + key: codecov-cache-test-no_std#4-cairo-0-secp-hints-${{ github.sha }} fail-on-cache-miss: true - name: Upload coverage to codecov.io From 5cfae301cf945055a1028d9397afe9bea6c12155 Mon Sep 17 00:00:00 2001 From: crStiv Date: Mon, 12 May 2025 20:27:39 +0200 Subject: [PATCH 2/2] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ea29ac2777..15839f2dd5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -400,7 +400,7 @@ jobs: uses: actions/checkout@v4 - name: Build run: cargo b --release -p cairo-vm-cli - # We don't read from cache because it should always miss + # We don't read from cache because it should always miss - name: Store in cache uses: actions/cache/save@v3 with: