Skip to content

Commit 6660da2

Browse files
committed
AmateurMergeTree: ci
1 parent 055549e commit 6660da2

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/amateur_ci.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: AmateurCI
3+
4+
on:
5+
push:
6+
branches: ['amateur-merge-tree']
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
name: "Build"
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v6
15+
with:
16+
submodules: recursive
17+
18+
- name: Restore ccache
19+
uses: actions/cache/restore@v4
20+
with:
21+
path: /tmp/ccache
22+
key: ccache-${{ github.sha }}
23+
restore-keys: |
24+
ccache-
25+
26+
- name: Build
27+
run: |
28+
docker run --rm -v $PWD:/ClickHouse -v /tmp/ccache:/tmp/ccache clickhouse/fasttest:b63954f8a1b316d0686e \
29+
/bin/bash -c "
30+
set -e
31+
apt-get update && apt-get install -y ccache
32+
export CC=clang-21
33+
export CXX=clang++-21
34+
export CCACHE_DIR=/tmp/ccache
35+
cd /ClickHouse/
36+
cmake -DCOMPILER_CACHE=ccache -DCMAKE_BUILD_TYPE=Debug -DENABLE_LIBRARIES=0 -DENABLE_UTILS=0 -DENABLE_TESTS=0 -DENABLE_RUST=0 -DENABLE_YAML_CPP=1 -G Ninja -S . -B build
37+
ninja -C build
38+
ccache --show-stats
39+
"
40+
41+
- name: Save ccache
42+
if: github.ref_name == 'amateur-merge-tree'
43+
uses: actions/cache/save@v4
44+
with:
45+
path: /tmp/ccache
46+
key: ccache-${{ github.sha }}

0 commit comments

Comments
 (0)