Skip to content

Commit a7d46c0

Browse files
authored
ci: use shared Gitlab runners (#209)
* make: bump PD commit * ci: use installed uv * ci: remove bender checkout stage * ci: bump PD commit * ci: don't clone bender submodules * ci: make `init-pd` part of `build` stage * ci: bump PD commit * ci: use copy link mode for uv
1 parent 9d2f0a7 commit a7d46c0

2 files changed

Lines changed: 8 additions & 23 deletions

File tree

.gitlab-ci.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,21 @@ variables:
99
QUESTA_SEPP: questa-2025.1
1010
VCS_SEPP: vcs-2025.06
1111
BENDER: bender
12-
UV: /home/fischeti/.local/bin/uv
13-
UV_LINK_MODE: hardlink
12+
BENDER_GIT_SUBMODULES: false
13+
UV_LINK_MODE: copy
1414

1515
default:
1616
interruptible: true
17+
before_script:
18+
- export BENDER_DB_DIR=$CACHEDIR/bender
19+
- export UV_CACHE_DIR=$CACHEDIR/uv
1720

1821
stages:
19-
- init
2022
- build
2123
- run
2224

23-
collect-bender-sources:
24-
stage: init
25-
script:
26-
- $BENDER checkout
27-
artifacts:
28-
paths:
29-
- .bender/
30-
- Bender.lock
31-
3225
compile-vsim:
3326
stage: build
34-
needs:
35-
- collect-bender-sources
3627
script:
3728
- make compile-vsim | tee compile.log 2>&1
3829
- '! grep "\*\* Error" compile.log'
@@ -44,8 +35,6 @@ compile-vsim:
4435

4536
compile-vcs:
4637
stage: build
47-
needs:
48-
- collect-bender-sources
4938
parallel:
5039
matrix:
5140
- TB_DUT:
@@ -61,14 +50,12 @@ compile-vcs:
6150

6251
compile-meshes:
6352
stage: build
64-
needs:
65-
- collect-bender-sources
6653
parallel:
6754
matrix:
6855
- DUT: [axi_mesh, nw_mesh]
6956
ROUTE_ALGO: [xy, yx, src, id]
7057
script:
71-
- $UV run --cache-dir $CI_BUILDS_DIR/../cache/uv floogen rtl -c floogen/examples/${DUT}_${ROUTE_ALGO}.yml -o generated --no-format
58+
- uv run floogen rtl -c floogen/examples/${DUT}_${ROUTE_ALGO}.yml -o generated --no-format
7259
# Compile the network
7360
- make compile-vsim EXTRA_BENDER_FLAGS="-t ${DUT}" WORK="work_${DUT}_${ROUTE_ALGO}" | tee compile.log 2>&1
7461
- '! grep "\*\* Error" compile.log'
@@ -79,7 +66,6 @@ compile-meshes:
7966
run-sim:
8067
stage: run
8168
needs:
82-
- collect-bender-sources
8369
- compile-vsim
8470
- compile-vcs
8571
parallel:
@@ -102,7 +88,6 @@ run-sim:
10288
run-traffic:
10389
stage: run
10490
needs:
105-
- collect-bender-sources
10691
- compile-meshes
10792
variables:
10893
JOB_NAME: mesh
@@ -122,7 +107,7 @@ run-traffic:
122107
###################
123108

124109
init-pd:
125-
stage: init
110+
stage: build
126111
script:
127112
- make init-pd
128113
artifacts:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ clean-spyglass:
187187
###################
188188

189189
PD_REMOTE ?= git@iis-git.ee.ethz.ch:axi-noc/floo_noc_pd.git
190-
PD_BRANCH ?= 4eca55093f3f4589e186150023f29614964d39a0
190+
PD_BRANCH ?= af870b4530a67d906fc48f341937821285ccb151
191191
PD_DIR = $(FLOO_ROOT)/pd
192192

193193
.PHONY: init-pd

0 commit comments

Comments
 (0)