From fe02366ce6b2e4da0258cadb66439a01e3ce6580 Mon Sep 17 00:00:00 2001 From: zyy17 Date: Wed, 11 Oct 2023 15:32:58 +0800 Subject: [PATCH] fix: remove unused options and add 'build-android-artifacts' (#2572) --- .../actions/build-greptime-binary/action.yml | 4 ++ .../actions/build-linux-artifacts/action.yml | 44 ------------------- 2 files changed, 4 insertions(+), 44 deletions(-) diff --git a/.github/actions/build-greptime-binary/action.yml b/.github/actions/build-greptime-binary/action.yml index 8a06dd2231e3..3cd8742d9aa9 100644 --- a/.github/actions/build-greptime-binary/action.yml +++ b/.github/actions/build-greptime-binary/action.yml @@ -20,6 +20,10 @@ inputs: description: Working directory to build the artifacts required: false default: . + build-android-artifacts: + description: Build android artifacts + required: false + default: 'false' runs: using: composite steps: diff --git a/.github/actions/build-linux-artifacts/action.yml b/.github/actions/build-linux-artifacts/action.yml index 54362ef29554..03c7239677c2 100644 --- a/.github/actions/build-linux-artifacts/action.yml +++ b/.github/actions/build-linux-artifacts/action.yml @@ -13,30 +13,10 @@ inputs: disable-run-tests: description: Disable running integration tests required: true - release-to-s3-bucket: - description: S3 bucket to store released artifacts - required: true - aws-access-key-id: - description: AWS access key id - required: true - aws-secret-access-key: - description: AWS secret access key - required: true - aws-region: - description: AWS region - required: true dev-mode: description: Enable dev mode, only build standard greptime required: false default: 'false' - upload-to-s3: - description: Upload to S3 - required: false - default: 'true' - upload-latest-artifacts: - description: Upload the latest artifacts to S3 - required: false - default: 'true' working-dir: description: Working directory to build the artifacts required: false @@ -68,12 +48,6 @@ runs: cargo-profile: ${{ inputs.cargo-profile }} artifacts-dir: greptime-linux-${{ inputs.arch }}-pyo3-${{ inputs.version }} version: ${{ inputs.version }} - release-to-s3-bucket: ${{ inputs.release-to-s3-bucket }} - aws-access-key-id: ${{ inputs.aws-access-key-id }} - aws-secret-access-key: ${{ inputs.aws-secret-access-key }} - aws-region: ${{ inputs.aws-region }} - upload-to-s3: ${{ inputs.upload-to-s3 }} - upload-latest-artifacts: ${{ inputs.upload-latest-artifacts }} working-dir: ${{ inputs.working-dir }} - name: Build greptime without pyo3 @@ -85,12 +59,6 @@ runs: cargo-profile: ${{ inputs.cargo-profile }} artifacts-dir: greptime-linux-${{ inputs.arch }}-${{ inputs.version }} version: ${{ inputs.version }} - release-to-s3-bucket: ${{ inputs.release-to-s3-bucket }} - aws-access-key-id: ${{ inputs.aws-access-key-id }} - aws-secret-access-key: ${{ inputs.aws-secret-access-key }} - aws-region: ${{ inputs.aws-region }} - upload-to-s3: ${{ inputs.upload-to-s3 }} - upload-latest-artifacts: ${{ inputs.upload-latest-artifacts }} working-dir: ${{ inputs.working-dir }} - name: Clean up the target directory # Clean up the target directory for the centos7 base image, or it will still use the objects of last build. @@ -107,12 +75,6 @@ runs: cargo-profile: ${{ inputs.cargo-profile }} artifacts-dir: greptime-linux-${{ inputs.arch }}-centos-${{ inputs.version }} version: ${{ inputs.version }} - release-to-s3-bucket: ${{ inputs.release-to-s3-bucket }} - aws-access-key-id: ${{ inputs.aws-access-key-id }} - aws-secret-access-key: ${{ inputs.aws-secret-access-key }} - aws-region: ${{ inputs.aws-region }} - upload-to-s3: ${{ inputs.upload-to-s3 }} - upload-latest-artifacts: ${{ inputs.upload-latest-artifacts }} working-dir: ${{ inputs.working-dir }} - name: Build greptime on android base image @@ -122,11 +84,5 @@ runs: base-image: android artifacts-dir: greptime-android-arm64-${{ inputs.version }} version: ${{ inputs.version }} - release-to-s3-bucket: ${{ inputs.release-to-s3-bucket }} - aws-access-key-id: ${{ inputs.aws-access-key-id }} - aws-secret-access-key: ${{ inputs.aws-secret-access-key }} - aws-region: ${{ inputs.aws-region }} - upload-to-s3: ${{ inputs.upload-to-s3 }} - upload-latest-artifacts: ${{ inputs.upload-latest-artifacts }} working-dir: ${{ inputs.working-dir }} build-android-artifacts: true