From 3555e1644c14de08648fe1422866e6579e0dec46 Mon Sep 17 00:00:00 2001 From: LFC <990479+MichaelScofield@users.noreply.github.com> Date: Wed, 13 Dec 2023 12:14:16 +0800 Subject: [PATCH] ci: able to choose cargo profile in dev-build action (#2923) --- .github/workflows/dev-build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index a297ebc45337..3d2bd14a0717 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -55,10 +55,18 @@ on: description: Build and push images to DockerHub and ACR required: false default: true + cargo_profile: + type: choice + description: The cargo profile to use in building GreptimeDB. + default: nightly + options: + - dev + - release + - nightly # Use env variables to control all the release process. env: - CARGO_PROFILE: nightly + CARGO_PROFILE: ${{ inputs.cargo_profile }} # Controls whether to run tests, include unit-test, integration-test and sqlness. DISABLE_RUN_TESTS: ${{ inputs.skip_test || vars.DEFAULT_SKIP_TEST }}