From 36e49ca1c35a90850c1ade74fc8740067432e62f Mon Sep 17 00:00:00 2001 From: shefeek-crypto Date: Tue, 9 Dec 2025 10:41:24 +0530 Subject: [PATCH 1/4] Enabling sccache for faster compiles --- .cargo/config.toml | 5 +++++ .github/workflows/ci.yml | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..c86ae7e --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[build] +# Use sccache for faster compilation +# Install: cargo install sccache +# To enable: Set RUSTC_WRAPPER=sccache in your environment +# rustc-wrapper = "sccache" # Uncomment after installing sccache diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ac3c49..e6235a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,9 @@ on: env: RUST_BACKTRACE: 1 CARGO_TERM_COLOR: always + CARGO_INCREMENTAL: 0 + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" jobs: fmt: @@ -43,6 +46,9 @@ jobs: toolchain: ${{ matrix.rust }} components: clippy + - name: Install sccache + uses: mozilla-actions/sccache-action@v0.0.6 + - name: Cache cargo registry uses: actions/cache@v4 with: From a4a8548e3805648cd09ce929aa87a8cf28e0144f Mon Sep 17 00:00:00 2001 From: shefeek-crypto Date: Tue, 9 Dec 2025 11:04:45 +0530 Subject: [PATCH 2/4] Removing CARGO_INCREMENTAL and SCCACHE_GHA_ENABLED --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6235a5..2a9e8ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,6 @@ on: env: RUST_BACKTRACE: 1 CARGO_TERM_COLOR: always - CARGO_INCREMENTAL: 0 - SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" jobs: From 1ba97f9d6f333e5e5c84989342c5b9293f6c1c6a Mon Sep 17 00:00:00 2001 From: shefeek-crypto Date: Tue, 9 Dec 2025 12:08:41 +0530 Subject: [PATCH 3/4] Updating github ci runs on image --- .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 2a9e8ff..1f8eace 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ env: jobs: fmt: name: Rustfmt - runs-on: ubuntu-latest + runs-on: ubuntu-22.04-4core steps: - uses: actions/checkout@v4 From fcb96f501c6c3883d709c568d1dafc0a97bf99d0 Mon Sep 17 00:00:00 2001 From: shefeek-crypto Date: Tue, 9 Dec 2025 12:17:07 +0530 Subject: [PATCH 4/4] Changing github runner to ubuntu-latest-m --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f8eace..8541514 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ env: jobs: fmt: name: Rustfmt - runs-on: ubuntu-22.04-4core + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -32,7 +32,7 @@ jobs: strategy: matrix: os: - - ubuntu-latest + - ubuntu-latest-m - macos-latest rust: [stable] steps: