From 0ac40387f7989a474bd2ebe1f81cc6f0b0b438d8 Mon Sep 17 00:00:00 2001 From: Dario Anongba Varela Date: Tue, 2 Jul 2024 15:49:33 +0200 Subject: [PATCH 1/2] new ci --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4712d65..7211b29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,15 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - uses: dtolnay/rust-toolchain@stable with: @@ -27,6 +36,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - uses: dtolnay/rust-toolchain@stable - run: cargo test --all-features From c1020812c0dc85a6d0abdb4953047a14e21e75c5 Mon Sep 17 00:00:00 2001 From: Dario Anongba Varela Date: Tue, 2 Jul 2024 16:42:07 +0200 Subject: [PATCH 2/2] done --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7211b29..626b4fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,6 @@ jobs: - run: make fmt test: - needs: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4