Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): presign artifact for download #17253

Merged
merged 5 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/actions/artifact_upload/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,17 @@ runs:
if: env.RUNNER_PROVIDER == 'aws'
shell: bash
run: |
echo "### artifacts 🚀" >> $GITHUB_STEP_SUMMARY
aws s3 sync ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/ \
s3://databend-ci/${{ env.BUILD_PROFILE }}/${{ inputs.sha }}/${{ inputs.target }}/${{ inputs.category }}/ \
--exclude "*" --include "databend-*" --no-progress
artifacts="meta,query,query.debug"
for artifact in ${artifacts//,/ }; do
if [[ -f ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-${artifact} ]]; then
url=$(aws s3 presign s3://databend-ci/${{ env.BUILD_PROFILE }}/${{ inputs.sha }}/${{ inputs.target }}/${{ inputs.category }}/databend-${artifact} --expires-in 21600)
echo "- [${artifact}](${url})" >> $GITHUB_STEP_SUMMARY
fi
done

- name: Upload artifact to gcs
if: env.RUNNER_PROVIDER == 'gcp'
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ result_large_err = "allow"
debug = 1
lto = "thin"
overflow-checks = false
opt-level = "s" ## defaults to be 3
opt-level = "s" # defaults to be 3
incremental = true

[profile.ci]
Expand Down
Loading