Skip to content

Commit

Permalink
chore(ci): presign artifact for download (#17253)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Jan 13, 2025
1 parent 77364e2 commit 26d0008
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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

0 comments on commit 26d0008

Please sign in to comment.