From d21df7faf685d09b03d24dab79ff35429ccf5372 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Fri, 23 May 2025 14:36:53 +0200 Subject: [PATCH 1/4] ci: fix cache --- .github/workflows/ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 075f8149..00607dbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,9 +18,9 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ matrix.build }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ matrix.build }}-cargo- + ${{ runner.os }}-cargo- - name: Install Rust run: | @@ -51,13 +51,17 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/cache@v4 + + - name: Cache Cargo + uses: actions/cache@v4 with: path: | ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-1 + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- - name: Install Rust run: | @@ -109,13 +113,16 @@ jobs: ref: main path: _canbench_main_branch - - uses: actions/cache@v4 + - name: Cache Cargo + uses: actions/cache@v4 with: path: | ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-1 + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- - name: Install Rust run: | From 01833bdb0fe7d9f1ca57d1f71a6d923efadad694 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Fri, 23 May 2025 15:20:43 +0200 Subject: [PATCH 2/4] add canbench --- .github/workflows/ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00607dbb..7bcc5571 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,7 @@ jobs: rustup default ${{ matrix.rust }} rustup component add rustfmt rustup component add clippy + rustup component add canbench rustup toolchain install nightly - name: Check Format @@ -59,9 +60,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo- + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-1 - name: Install Rust run: | @@ -120,9 +119,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo- + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-1 - name: Install Rust run: | From 81a3af88a01da8c5ed0b8e81b56e2634051602f2 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Fri, 23 May 2025 15:21:49 +0200 Subject: [PATCH 3/4] . --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bcc5571..da26fed1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,9 +52,7 @@ jobs: steps: - uses: actions/checkout@v4 - - - name: Cache Cargo - uses: actions/cache@v4 + - uses: actions/cache@v4 with: path: | ~/.cargo/registry @@ -112,8 +110,7 @@ jobs: ref: main path: _canbench_main_branch - - name: Cache Cargo - uses: actions/cache@v4 + - uses: actions/cache@v4 with: path: | ~/.cargo/registry From c1db774e4f7b8fd1e8ce46805645ece3156a9d2a Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan Date: Fri, 23 May 2025 15:22:41 +0200 Subject: [PATCH 4/4] . --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da26fed1..0b623f2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,8 +28,8 @@ jobs: rustup default ${{ matrix.rust }} rustup component add rustfmt rustup component add clippy - rustup component add canbench rustup toolchain install nightly + cargo install canbench - name: Check Format run: cargo fmt --all -- --check