Skip to content

Commit 0fd8f32

Browse files
committed
check for backend sha env var and add to data if exists
1 parent 776aa43 commit 0fd8f32

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

chipflow_lib/steps/silicon.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ def submit(self, rtlil_path, *, dry_run=False):
133133
"name": submission_name,
134134
}
135135

136+
# Check if BACKEND_SHA exists in the environment and add it to the data dictionary
137+
backend_sha = os.environ.get("BACKEND_SHA")
138+
if backend_sha:
139+
data["backendSha"] = backend_sha
140+
141+
136142
pads = {}
137143
for iface, port in self.platform._ports.items():
138144
width = len(port.pins)
@@ -166,6 +172,7 @@ def submit(self, rtlil_path, *, dry_run=False):
166172
print(f"files['config']=\n{json.dumps(config, indent=2)}")
167173
return
168174

175+
169176
logger.info(f"Submitting {submission_name} for project {self.project_name}")
170177
endpoint = os.environ.get("CHIPFLOW_API_ENDPOINT", "https://build.chipflow.org/api/builds")
171178
host = urlparse(endpoint).netloc

0 commit comments

Comments
 (0)