From 65f80af9a9b670699ba17cb0e48128dddf26e5c6 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Tue, 7 May 2024 19:16:47 +0800 Subject: [PATCH] build: run cargo gc to build binaries (#3874) * build: run cargo gc to build binaries Signed-off-by: Ruihang Xia * add comment Signed-off-by: Ruihang Xia --------- Signed-off-by: Ruihang Xia --- .github/workflows/develop.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index c90d718e28a3..71b99c065756 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -114,9 +114,13 @@ jobs: with: # Shares across multiple jobs shared-key: "build-binaries" + - name: Install cargo-gc-bin + shell: bash + run: cargo install cargo-gc-bin - name: Build greptime binaries shell: bash - run: cargo build --bin greptime --bin sqlness-runner + # `cargo gc` will invoke `cargo build` with specified args + run: cargo gc -- --bin greptime --bin sqlness-runner - name: Pack greptime binaries shell: bash run: |