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): upload sccache log for build #17201

Merged
merged 2 commits into from
Jan 8, 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
6 changes: 6 additions & 0 deletions .github/actions/setup_build_tool/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ runs:
BIN_LOCAL=$HOME/.cargo/bin
mkdir -p $BIN_LOCAL
echo "$BIN_LOCAL" >> $GITHUB_PATH
mkdir -p target
touch target/sccache.log
cat <<EOF >$BIN_LOCAL/build-tool
#!/bin/bash
Expand All @@ -46,6 +48,8 @@ runs:
export SCCACHE_REGION=us-east-2
export SCCACHE_S3_KEY_PREFIX="cache/sccache/"
export SCCACHE_S3_USE_SSL="true"
export SCCACHE_ERROR_LOG=target/sccache.log
export SCCACHE_LOG=info
EOF
;;
Expand All @@ -56,6 +60,8 @@ runs:
export SCCACHE_GCS_RW_MODE=READ_WRITE
export SCCACHE_GCS_BUCKET=databend-ci
export SCCACHE_GCS_KEY_PREFIX="cache/sccache/"
export SCCACHE_ERROR_LOG=target/sccache.log
export SCCACHE_LOG=info
EOF
;;
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reuse.linux.hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
features: storage-hdfs
category: hdfs
artifacts: meta,query
- name: upload sccache log
if: always()
uses: actions/upload-artifact@v4
with:
name: build
path: target/sccache.log

test_stateful_hive_standalone:
needs: build
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/reuse.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ jobs:
sha: ${{ github.sha }}
target: ${{ matrix.arch }}-unknown-linux-gnu
artifacts: all
- name: upload sccache log
if: always()
uses: actions/upload-artifact@v4
with:
name: build
path: target/sccache.log

build_udf:
runs-on:
Expand Down Expand Up @@ -90,6 +96,12 @@ jobs:
features: python-udf
category: udf
artifacts: query
- name: upload sccache log
if: always()
uses: actions/upload-artifact@v4
with:
name: build
path: target/sccache.log

# build_address_sanitizer:
# runs-on:
Expand Down
Loading