From 4a63fea37a396003749b3da81b701e2c8b7ddc93 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 18 Dec 2024 22:20:32 +0800 Subject: [PATCH 1/7] ci: add sccache to speed up ci build Signed-off-by: xxchan --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38f450bf7..c7bb7b7ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,8 @@ concurrency: env: rust_msrv: "1.77.1" + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" jobs: check: @@ -104,6 +106,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.4 + - name: Setup Rust toolchain uses: ./.github/actions/setup-builder with: From deb7371322bc0a8e7108342d7f92d78da4c9a5e2 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 18 Dec 2024 22:24:47 +0800 Subject: [PATCH 2/7] add to all jobs Signed-off-by: xxchan --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7bb7b7ad..17245d15b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,6 +48,9 @@ jobs: - name: Check License Header uses: apache/skywalking-eyes/header@v0.6.0 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.4 + - name: Install cargo-sort run: make install-cargo-sort @@ -80,6 +83,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.4 + - name: Setup Rust toolchain uses: ./.github/actions/setup-builder with: @@ -98,6 +104,10 @@ jobs: - windows-latest steps: - uses: actions/checkout@v4 + + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.4 + - name: Build run: cargo build -p iceberg --no-default-features From f2c76f179a1c9f87bab448f453265ead043afdb6 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 18 Dec 2024 22:40:37 +0800 Subject: [PATCH 3/7] retry once From e99fadf00b3d672bb93b956a86839108220c5434 Mon Sep 17 00:00:00 2001 From: xxchan Date: Wed, 18 Dec 2024 23:16:08 +0800 Subject: [PATCH 4/7] retry twice From 22013a82d3ac55b0b2bec929d23bab66484cb1ff Mon Sep 17 00:00:00 2001 From: xxchan Date: Sun, 22 Dec 2024 09:50:43 +0800 Subject: [PATCH 5/7] warm up cache From 695fce20e44e441bde211deedc56cd5a2d2827cd Mon Sep 17 00:00:00 2001 From: xxchan Date: Mon, 23 Dec 2024 11:00:14 +0800 Subject: [PATCH 6/7] debug Signed-off-by: xxchan --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17245d15b..6d2e03eb1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,7 @@ env: rust_msrv: "1.77.1" SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" + SCCACHE_LOG: "debug" jobs: check: From d4a2595e05757b5ae02b13d32b41289c244f90c1 Mon Sep 17 00:00:00 2001 From: xxchan Date: Mon, 23 Dec 2024 11:45:50 +0800 Subject: [PATCH 7/7] try 0.0.7 Signed-off-by: xxchan --- .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 6d2e03eb1..6f50dddb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: uses: apache/skywalking-eyes/header@v0.6.0 - name: Setup sccache - uses: mozilla-actions/sccache-action@v0.0.4 + uses: mozilla-actions/sccache-action@v0.0.7 - name: Install cargo-sort run: make install-cargo-sort