File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : bazel-build
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ Build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+ with :
18+ submodules : recursive
19+
20+ - name : Create Cache Timestamp
21+ id : cache_timestamp
22+ 23+ with :
24+ format : ' YYYY-MM-DD-HH-mm-ss'
25+
26+ - name : Mount bazel cache
27+ uses : actions/cache@v4
28+ with :
29+ path : " ~/.cache/bazel"
30+ key : bazelcache_${{ steps.cache_timestamp.outputs.time }}
31+ restore-keys : bazelcache_
32+
33+ - name : Build
34+ run : |
35+ # FIXME once OpenROAD is converted fully to bzlmod, we can remove this
36+ (cd tools/OpenROAD && bazelisk build :openroad -c opt)
37+ cd flow
38+ bazelisk build ...
39+
40+ - name : Trim Bazel Cache
41+ run : |
42+ echo "Trim download cache"
43+ du -sh $(bazelisk info repository_cache)
44+ rm -r $(bazelisk info repository_cache)
45+
46+ echo "Other remaining things that are big"
47+ du -h -t 200M ~/.cache/bazel/*/ | sort -hr
You can’t perform that action at this time.
0 commit comments