Skip to content

Commit

Permalink
chore(ci): upload sccache log for build (#17201) (#17205)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Jan 8, 2025
1 parent 2ae7380 commit 0a84452
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
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

0 comments on commit 0a84452

Please sign in to comment.