Skip to content

Commit 26d0008

Browse files
authored
chore(ci): presign artifact for download (#17253)
1 parent 77364e2 commit 26d0008

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/actions/artifact_upload/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,17 @@ runs:
4141
if: env.RUNNER_PROVIDER == 'aws'
4242
shell: bash
4343
run: |
44+
echo "### artifacts 🚀" >> $GITHUB_STEP_SUMMARY
4445
aws s3 sync ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/ \
4546
s3://databend-ci/${{ env.BUILD_PROFILE }}/${{ inputs.sha }}/${{ inputs.target }}/${{ inputs.category }}/ \
4647
--exclude "*" --include "databend-*" --no-progress
48+
artifacts="meta,query,query.debug"
49+
for artifact in ${artifacts//,/ }; do
50+
if [[ -f ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-${artifact} ]]; then
51+
url=$(aws s3 presign s3://databend-ci/${{ env.BUILD_PROFILE }}/${{ inputs.sha }}/${{ inputs.target }}/${{ inputs.category }}/databend-${artifact} --expires-in 21600)
52+
echo "- [${artifact}](${url})" >> $GITHUB_STEP_SUMMARY
53+
fi
54+
done
4755
4856
- name: Upload artifact to gcs
4957
if: env.RUNNER_PROVIDER == 'gcp'

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ result_large_err = "allow"
586586
debug = 1
587587
lto = "thin"
588588
overflow-checks = false
589-
opt-level = "s" ## defaults to be 3
589+
opt-level = "s" # defaults to be 3
590590
incremental = true
591591

592592
[profile.ci]

0 commit comments

Comments
 (0)