diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 038334613ec..445a84381a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -240,6 +240,14 @@ jobs: } cargo ci smoketests -- --test-threads=1 + - name: Upload Cargo timing reports + if: always() + uses: actions/upload-artifact@v4 + with: + name: cargo-timings-smoketests-${{ matrix.name }} + path: ${{ github.workspace }}/target/cargo-timings/ + retention-days: 30 + # this is a no-op version of the above check with a trivially-passing body. # we can't just let the check be entirely skipped because each matrix target is a required check, # and skipping this check means that the matrix isn't "populated" so the required checks wouldn't be met. @@ -504,6 +512,14 @@ jobs: - name: Run ci lint run: cargo ci lint + - name: Upload public lint Cargo timing reports + if: always() + uses: actions/upload-artifact@v4 + with: + name: cargo-timings-public-lints + path: ${{ github.workspace }}/target/cargo-timings/ + retention-days: 30 + wasm_bindings: needs: [merge_queue_noop] if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} diff --git a/tools/ci/src/main.rs b/tools/ci/src/main.rs index 4d506a4e5f4..ce89213b0c6 100644 --- a/tools/ci/src/main.rs +++ b/tools/ci/src/main.rs @@ -612,6 +612,7 @@ fn main() -> Result<()> { cmd!( "cargo", "clippy", + "--timings", "--all", "--tests", "--benches", @@ -623,6 +624,7 @@ fn main() -> Result<()> { cmd!( "cargo", "clippy", + "--timings", "--no-default-features", "--features=browser", "-pspacetimedb-sdk", diff --git a/tools/ci/src/smoketest.rs b/tools/ci/src/smoketest.rs index 41bc8619841..ecaf9bcaa74 100644 --- a/tools/ci/src/smoketest.rs +++ b/tools/ci/src/smoketest.rs @@ -76,6 +76,7 @@ fn build_binaries() -> Result<()> { let mut cmd = Command::new("cargo"); cmd.args([ "build", + "--timings", "--release", "-p", "spacetimedb-cli", @@ -120,6 +121,7 @@ fn build_precompiled_modules() -> Result<()> { let status = Command::new("cargo") .args([ "build", + "--timings", "--workspace", "--release", "--target",