Skip to content

Commit 510b530

Browse files
committed
bazel: build OpenROAD and run ORFS flows
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 2130847 commit 510b530

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
uses: nanzm/[email protected]
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

0 commit comments

Comments
 (0)