Skip to content

Commit 0a84452

Browse files
authored
chore(ci): upload sccache log for build (#17201) (#17205)
1 parent 2ae7380 commit 0a84452

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/actions/setup_build_tool/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ runs:
2424
BIN_LOCAL=$HOME/.cargo/bin
2525
mkdir -p $BIN_LOCAL
2626
echo "$BIN_LOCAL" >> $GITHUB_PATH
27+
mkdir -p target
28+
touch target/sccache.log
2729
2830
cat <<EOF >$BIN_LOCAL/build-tool
2931
#!/bin/bash
@@ -46,6 +48,8 @@ runs:
4648
export SCCACHE_REGION=us-east-2
4749
export SCCACHE_S3_KEY_PREFIX="cache/sccache/"
4850
export SCCACHE_S3_USE_SSL="true"
51+
export SCCACHE_ERROR_LOG=target/sccache.log
52+
export SCCACHE_LOG=info
4953
EOF
5054
;;
5155
@@ -56,6 +60,8 @@ runs:
5660
export SCCACHE_GCS_RW_MODE=READ_WRITE
5761
export SCCACHE_GCS_BUCKET=databend-ci
5862
export SCCACHE_GCS_KEY_PREFIX="cache/sccache/"
63+
export SCCACHE_ERROR_LOG=target/sccache.log
64+
export SCCACHE_LOG=info
5965
EOF
6066
;;
6167

.github/workflows/reuse.linux.hive.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
features: storage-hdfs
4141
category: hdfs
4242
artifacts: meta,query
43+
- name: upload sccache log
44+
if: always()
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: build
48+
path: target/sccache.log
4349

4450
test_stateful_hive_standalone:
4551
needs: build

.github/workflows/reuse.linux.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ jobs:
6161
sha: ${{ github.sha }}
6262
target: ${{ matrix.arch }}-unknown-linux-gnu
6363
artifacts: all
64+
- name: upload sccache log
65+
if: always()
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: build
69+
path: target/sccache.log
6470

6571
build_udf:
6672
runs-on:
@@ -90,6 +96,12 @@ jobs:
9096
features: python-udf
9197
category: udf
9298
artifacts: query
99+
- name: upload sccache log
100+
if: always()
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: build
104+
path: target/sccache.log
93105

94106
# build_address_sanitizer:
95107
# runs-on:

0 commit comments

Comments
 (0)